From fbf04dcd3996d8e84f7039886d010a30caf46b8f Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Mon, 1 Apr 2024 08:17:12 +0100 Subject: [PATCH] address unused code warnings (#98) --- src/endpoints/auth.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/endpoints/auth.rs b/src/endpoints/auth.rs index 528c20a..7e16364 100644 --- a/src/endpoints/auth.rs +++ b/src/endpoints/auth.rs @@ -16,7 +16,8 @@ mod refresh { pub access_token: String, /// The id of the client - pub client_id: String, + #[serde(rename = "client_id")] + pub _client_id: String, /// time (in seconds) until the access token expires pub expires_in: i64, @@ -27,10 +28,12 @@ mod refresh { /// The token type. currently the only supported token type is /// "bearer_auth" - pub token_type: String, + #[serde(rename = "token_type")] + pub _token_type: String, /// The id of the current Monzo user - pub user_id: String, + #[serde(rename = "user_id")] + pub _user_id: String, } /// A request for new authentication tokens.