Struct oauth2_types::requests::AuthorizationResponse
source · pub struct AuthorizationResponse {
pub code: Option<String>,
pub access_token: Option<String>,
pub token_type: Option<OAuthAccessTokenType>,
pub id_token: Option<String>,
pub expires_in: Option<Duration>,
}
Expand description
A successful response from the Authorization Endpoint.
Fields§
§code: Option<String>
The authorization code generated by the authorization server.
access_token: Option<String>
The access token to access the requested scope.
token_type: Option<OAuthAccessTokenType>
The type of the access token.
id_token: Option<String>
ID Token value associated with the authenticated session.
expires_in: Option<Duration>
The duration for which the access token is valid.
Trait Implementations§
source§impl Clone for AuthorizationResponse
impl Clone for AuthorizationResponse
source§fn clone(&self) -> AuthorizationResponse
fn clone(&self) -> AuthorizationResponse
Returns a copy of the value. Read more
1.0.0 · 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 AuthorizationResponse
impl Debug for AuthorizationResponse
source§impl Default for AuthorizationResponse
impl Default for AuthorizationResponse
source§fn default() -> AuthorizationResponse
fn default() -> AuthorizationResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AuthorizationResponse
impl<'de> Deserialize<'de> for AuthorizationResponse
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 AuthorizationResponse
impl RefUnwindSafe for AuthorizationResponse
impl Send for AuthorizationResponse
impl Sync for AuthorizationResponse
impl Unpin for AuthorizationResponse
impl UnwindSafe for AuthorizationResponse
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more