Skip to content

Commit b283678

Browse files
committed
fix(achievement): apply camelCase rename to achievement award batches
1 parent ad431a1 commit b283678

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/achievement.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ impl<Metadata, Player, State, Trigger> Achievement<Metadata, Player, State, Trig
201201

202202
/// Represents the achievements awarded to a single player at a specific time.
203203
#[derive(Debug, Clone, Serialize)]
204+
#[serde(rename_all = "camelCase")]
204205
pub struct PlayerAchievementAwards {
205206
/// The unique ID of the player who received the achievements.
206207
pub player_id: Uuid,
@@ -210,6 +211,7 @@ pub struct PlayerAchievementAwards {
210211

211212
/// Represents a batch of achievements awarded to multiple players at a given timestamp.
212213
#[derive(Debug, Clone, Serialize)]
214+
#[serde(rename_all = "camelCase")]
213215
pub struct AchievementAwardBatch {
214216
/// The timestamp when the achievements were awarded.
215217
pub awarded_at: DateTime<Utc>,

0 commit comments

Comments
 (0)