#[non_exhaustive]pub struct AuthenticationResultType {
pub access_token: Option<String>,
pub expires_in: i32,
pub token_type: Option<String>,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub new_device_metadata: Option<NewDeviceMetadataType>,
}Expand description
The authentication result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_token: Option<String>A valid access token that Amazon Cognito issued to the user who you want to authenticate.
expires_in: i32The expiration period of the authentication result in seconds.
token_type: Option<String>The token type.
refresh_token: Option<String>The refresh token.
id_token: Option<String>The ID token.
new_device_metadata: Option<NewDeviceMetadataType>The new device metadata from an authentication result.
Implementations§
source§impl AuthenticationResultType
impl AuthenticationResultType
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
sourcepub fn expires_in(&self) -> i32
pub fn expires_in(&self) -> i32
The expiration period of the authentication result in seconds.
sourcepub fn token_type(&self) -> Option<&str>
pub fn token_type(&self) -> Option<&str>
The token type.
sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
The refresh token.
sourcepub fn new_device_metadata(&self) -> Option<&NewDeviceMetadataType>
pub fn new_device_metadata(&self) -> Option<&NewDeviceMetadataType>
The new device metadata from an authentication result.
source§impl AuthenticationResultType
impl AuthenticationResultType
sourcepub fn builder() -> AuthenticationResultTypeBuilder
pub fn builder() -> AuthenticationResultTypeBuilder
Creates a new builder-style object to manufacture AuthenticationResultType.
Trait Implementations§
source§impl Clone for AuthenticationResultType
impl Clone for AuthenticationResultType
source§fn clone(&self) -> AuthenticationResultType
fn clone(&self) -> AuthenticationResultType
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 AuthenticationResultType
impl Debug for AuthenticationResultType
source§impl PartialEq for AuthenticationResultType
impl PartialEq for AuthenticationResultType
source§fn eq(&self, other: &AuthenticationResultType) -> bool
fn eq(&self, other: &AuthenticationResultType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AuthenticationResultType
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticationResultType
impl Send for AuthenticationResultType
impl Sync for AuthenticationResultType
impl Unpin for AuthenticationResultType
impl UnwindSafe for AuthenticationResultType
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.