Struct aws_sdk_ssooidc::operation::create_token::CreateTokenOutput
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)