Skip to content

Commit

Permalink
camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
keesverruijt committed Sep 2, 2024
1 parent fd67dec commit 2b352f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ async fn root() -> String {
}

#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
struct RadarApi {
id: String,
name: String,
spokes: u16,
#[serde(rename = "maxSpokeLen")]
max_spoke_len: u16,
#[serde(rename = "streamUrl")]
stream_url: String,
legend: Legend,
controls: HashMap<ControlType, Control>,
Expand Down

0 comments on commit 2b352f6

Please sign in to comment.