#[non_exhaustive]pub struct Credentials {
pub access_key_id: String,
pub secret_access_key: String,
pub session_token: String,
pub expiration: DateTime,
}
Expand description
Amazon Web Services credentials for API authentication.
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_key_id: String
The access key ID that identifies the temporary security credentials.
secret_access_key: String
The secret access key that can be used to sign requests.
session_token: String
The token that users must pass to the service API to use the temporary credentials.
expiration: DateTime
The date on which the current credentials expire.
Implementations§
Source§impl Credentials
impl Credentials
Sourcepub fn access_key_id(&self) -> &str
pub fn access_key_id(&self) -> &str
The access key ID that identifies the temporary security credentials.
Sourcepub fn secret_access_key(&self) -> &str
pub fn secret_access_key(&self) -> &str
The secret access key that can be used to sign requests.
Sourcepub fn session_token(&self) -> &str
pub fn session_token(&self) -> &str
The token that users must pass to the service API to use the temporary credentials.
Sourcepub fn expiration(&self) -> &DateTime
pub fn expiration(&self) -> &DateTime
The date on which the current credentials expire.
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
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> 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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.