Skip to content

Commit

Permalink
fix: snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
harlleybastos committed Jul 21, 2023
1 parent 0cccc10 commit 56f63b6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ use serde_derive::Deserialize;

#[derive(Deserialize, Debug)]
struct Summoner {
#[serde(rename = "id")]
id: String,
accountId: String,
#[serde(rename = "accountId")]
account_id: String,
#[serde(rename = "puuid")]
puuid: String,
#[serde(rename = "name")]
name: String,
profileIconId: i32,
revisionDate: i64,
summonerLevel: i32,
#[serde(rename = "profileIconId")]
profile_icon_id: i32,
#[serde(rename = "revisionDate")]
revision_date: i64,
#[serde(rename = "summonerLevel")]
summoner_level: i32,
}

#[tokio::main]
Expand Down

0 comments on commit 56f63b6

Please sign in to comment.