Struct aws_sdk_amplifyuibuilder::operation::exchange_code_for_token::ExchangeCodeForTokenOutput
source · #[non_exhaustive]pub struct ExchangeCodeForTokenOutput {
pub access_token: String,
pub expires_in: i32,
pub refresh_token: String,
/* private fields */
}
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: String
The access token.
expires_in: i32
The date and time when the new access token expires.
refresh_token: String
The token to use to refresh a previously issued access token that might have expired.
Implementations§
source§impl ExchangeCodeForTokenOutput
impl ExchangeCodeForTokenOutput
sourcepub fn access_token(&self) -> &str
pub fn access_token(&self) -> &str
The access token.
sourcepub fn expires_in(&self) -> i32
pub fn expires_in(&self) -> i32
The date and time when the new access token expires.
sourcepub fn refresh_token(&self) -> &str
pub fn refresh_token(&self) -> &str
The token to use to refresh a previously issued access token that might have expired.
source§impl ExchangeCodeForTokenOutput
impl ExchangeCodeForTokenOutput
sourcepub fn builder() -> ExchangeCodeForTokenOutputBuilder
pub fn builder() -> ExchangeCodeForTokenOutputBuilder
Creates a new builder-style object to manufacture ExchangeCodeForTokenOutput
.
Trait Implementations§
source§impl Clone for ExchangeCodeForTokenOutput
impl Clone for ExchangeCodeForTokenOutput
source§fn clone(&self) -> ExchangeCodeForTokenOutput
fn clone(&self) -> ExchangeCodeForTokenOutput
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 ExchangeCodeForTokenOutput
impl Debug for ExchangeCodeForTokenOutput
source§impl PartialEq for ExchangeCodeForTokenOutput
impl PartialEq for ExchangeCodeForTokenOutput
source§fn eq(&self, other: &ExchangeCodeForTokenOutput) -> bool
fn eq(&self, other: &ExchangeCodeForTokenOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for ExchangeCodeForTokenOutput
impl RequestId for ExchangeCodeForTokenOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for ExchangeCodeForTokenOutput
Auto Trait Implementations§
impl Freeze for ExchangeCodeForTokenOutput
impl RefUnwindSafe for ExchangeCodeForTokenOutput
impl Send for ExchangeCodeForTokenOutput
impl Sync for ExchangeCodeForTokenOutput
impl Unpin for ExchangeCodeForTokenOutput
impl UnwindSafe for ExchangeCodeForTokenOutput
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>
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 moreCreates a shared type from an unshared type.