#[non_exhaustive]pub struct CreateTokenOutput {
pub access_token: Option<String>,
pub token_type: Option<String>,
pub expires_in: i32,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.access_token: Option<String>
A bearer token to access AWS accounts and applications assigned to a user.
token_type: Option<String>
Used to notify the client that the returned token is an access token. The supported token type is Bearer
.
expires_in: i32
Indicates the time in seconds when an access token will expire.
refresh_token: Option<String>
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
id_token: Option<String>
The idToken
is not implemented or supported. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
Implementations§
Source§impl CreateTokenOutput
impl CreateTokenOutput
Sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
A bearer token to access AWS accounts and applications assigned to a user.
Sourcepub fn token_type(&self) -> Option<&str>
pub fn token_type(&self) -> Option<&str>
Used to notify the client that the returned token is an access token. The supported token type is Bearer
.
Sourcepub fn expires_in(&self) -> i32
pub fn expires_in(&self) -> i32
Indicates the time in seconds when an access token will expire.
Sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
Sourcepub fn id_token(&self) -> Option<&str>
pub fn id_token(&self) -> Option<&str>
The idToken
is not implemented or supported. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
Source§impl CreateTokenOutput
impl CreateTokenOutput
Sourcepub fn builder() -> CreateTokenOutputBuilder
pub fn builder() -> CreateTokenOutputBuilder
Creates a new builder-style object to manufacture CreateTokenOutput
.
Trait Implementations§
Source§impl Clone for CreateTokenOutput
impl Clone for CreateTokenOutput
Source§fn clone(&self) -> CreateTokenOutput
fn clone(&self) -> CreateTokenOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateTokenOutput
impl Debug for CreateTokenOutput
Source§impl PartialEq for CreateTokenOutput
impl PartialEq for CreateTokenOutput
Source§impl RequestId for CreateTokenOutput
impl RequestId for CreateTokenOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateTokenOutput
Auto Trait Implementations§
impl Freeze for CreateTokenOutput
impl RefUnwindSafe for CreateTokenOutput
impl Send for CreateTokenOutput
impl Sync for CreateTokenOutput
impl Unpin for CreateTokenOutput
impl UnwindSafe for CreateTokenOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)