pub struct AuthBody {
pub access_token: String,
pub token_type: String,
}Expand description
Authentication response with access token.
Contains an access token and token type for HTTP authentication.
§JSON Format
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer"
}Fields§
§access_token: StringThe access token.
token_type: StringThe token type (always “Bearer”).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthBody
impl<'de> Deserialize<'de> for AuthBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthBody
impl RefUnwindSafe for AuthBody
impl Send for AuthBody
impl Sync for AuthBody
impl Unpin for AuthBody
impl UnwindSafe for AuthBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more