From cc52b9914411dce27b192e794e756396d81b7986 Mon Sep 17 00:00:00 2001 From: jane400 Date: Sun, 18 Aug 2024 18:07:20 +0200 Subject: [PATCH] format: use serde rename_all --- libpaket/src/advices/www.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libpaket/src/advices/www.rs b/libpaket/src/advices/www.rs index db4bf2e..e5e2a46 100644 --- a/libpaket/src/advices/www.rs +++ b/libpaket/src/advices/www.rs @@ -29,18 +29,13 @@ newtype! { } #[derive(Deserialize, Debug)] +#[serde(rename_all = "camelCase")] pub struct AdvicesResponse { // access_token_url, basic_auth, grant_token is null if no advices are available - #[serde(rename = "accessTokenUrl")] pub(super) access_token_url: Option, - #[serde(rename = "basicAuth")] pub(super) basic_auth: Option, - #[serde(rename = "currentAdvice")] current_advice: Option, - #[serde(rename = "grantToken")] pub(super) grant_token: Option, - - #[serde(rename = "oldAdvices")] old_advices: Vec, }