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, }