Struct aws_sdk_connect::types::Credentials
source · #[non_exhaustive]pub struct Credentials {
pub access_token: Option<String>,
pub access_token_expiration: Option<DateTime>,
pub refresh_token: Option<String>,
pub refresh_token_expiration: Option<DateTime>,
}
Expand description
Contains credentials to use for federation.
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>
An access token generated for a federated user to access Amazon Connect.
access_token_expiration: Option<DateTime>
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
refresh_token: Option<String>
Renews a token generated for a user to access the Amazon Connect instance.
refresh_token_expiration: Option<DateTime>
Renews the expiration timer for a generated token.
Implementations§
source§impl Credentials
impl Credentials
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
An access token generated for a federated user to access Amazon Connect.
sourcepub fn access_token_expiration(&self) -> Option<&DateTime>
pub fn access_token_expiration(&self) -> Option<&DateTime>
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
Renews a token generated for a user to access the Amazon Connect instance.
sourcepub fn refresh_token_expiration(&self) -> Option<&DateTime>
pub fn refresh_token_expiration(&self) -> Option<&DateTime>
Renews the expiration timer for a generated token.
source§impl Credentials
impl Credentials
sourcepub fn builder() -> CredentialsBuilder
pub fn builder() -> CredentialsBuilder
Creates a new builder-style object to manufacture Credentials
.
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 Credentials
impl Debug for Credentials
source§impl PartialEq for Credentials
impl PartialEq for Credentials
source§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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.