pub struct AuthTokenResponse {
pub token: String,
pub user: User,
}Expand description
A freshly minted session bearer token and the authenticated user.
JSON schema
{
"title": "AuthTokenResponse",
"description": "A freshly minted session bearer token and the
authenticated user.",
"type": "object",
"required": [
"token",
"user"
],
"properties": {
"token": {
"description": "The raw session bearer token. Send it as
`Authorization: Bearer <token>`.",
"type": "string"
},
"user": {
"$ref": "#/components/schemas/User"
}
}
}Fields§
§token: StringThe raw session bearer token. Send it as Authorization: Bearer <token>.
user: UserTrait Implementations§
Source§impl Clone for AuthTokenResponse
impl Clone for AuthTokenResponse
Source§fn clone(&self) -> AuthTokenResponse
fn clone(&self) -> AuthTokenResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthTokenResponse
impl Debug for AuthTokenResponse
Source§impl<'de> Deserialize<'de> for AuthTokenResponse
impl<'de> Deserialize<'de> for AuthTokenResponse
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 AuthTokenResponse
impl RefUnwindSafe for AuthTokenResponse
impl Send for AuthTokenResponse
impl Sync for AuthTokenResponse
impl Unpin for AuthTokenResponse
impl UnsafeUnpin for AuthTokenResponse
impl UnwindSafe for AuthTokenResponse
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