Struct aws_mfa::Credentials
source · pub struct Credentials { /* private fields */ }Expand description
Credentials received after authenticating to AWS with MFA
Implementations§
source§impl Credentials
impl Credentials
pub fn new( access_key_id: &str, secret_access_key: &str, session_token: &str, session_expiration_timestamp: i64 ) -> Self
pub fn to_aws_credentials(&self) -> Credentials
pub fn access_key_id(&self) -> &str
pub fn secret_access_key(&self) -> &str
pub fn session_token(&self) -> &str
pub fn session_expiration_timestamp(&self) -> i64
pub fn session_duration(&self) -> Result<Duration, Error>
pub fn expired(&self) -> bool
Auto Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.