format: use serde rename_all
This commit is contained in:
parent
b8f4e199f6
commit
cc52b99144
1 changed files with 1 additions and 6 deletions
|
@ -29,18 +29,13 @@ newtype! {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct AdvicesResponse {
|
pub struct AdvicesResponse {
|
||||||
// access_token_url, basic_auth, grant_token is null if no advices are available
|
// access_token_url, basic_auth, grant_token is null if no advices are available
|
||||||
#[serde(rename = "accessTokenUrl")]
|
|
||||||
pub(super) access_token_url: Option<AdviceAccessTokenUrl>,
|
pub(super) access_token_url: Option<AdviceAccessTokenUrl>,
|
||||||
#[serde(rename = "basicAuth")]
|
|
||||||
pub(super) basic_auth: Option<String>,
|
pub(super) basic_auth: Option<String>,
|
||||||
#[serde(rename = "currentAdvice")]
|
|
||||||
current_advice: Option<AdvicesList>,
|
current_advice: Option<AdvicesList>,
|
||||||
#[serde(rename = "grantToken")]
|
|
||||||
pub(super) grant_token: Option<String>,
|
pub(super) grant_token: Option<String>,
|
||||||
|
|
||||||
#[serde(rename = "oldAdvices")]
|
|
||||||
old_advices: Vec<AdvicesList>,
|
old_advices: Vec<AdvicesList>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue