pub struct EnvironmentVariableCredentialsProvider { /* private fields */ }
Expand description
Load Credentials from Environment Variables
EnvironmentVariableCredentialsProvider
uses the following variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
with fallback toSECRET_ACCESS_KEY
AWS_SESSION_TOKEN
Implementations§
Trait Implementations§
source§impl Clone for EnvironmentVariableCredentialsProvider
impl Clone for EnvironmentVariableCredentialsProvider
source§fn clone(&self) -> EnvironmentVariableCredentialsProvider
fn clone(&self) -> EnvironmentVariableCredentialsProvider
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 ProvideCredentials for EnvironmentVariableCredentialsProvider
impl ProvideCredentials for EnvironmentVariableCredentialsProvider
source§fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>where
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>where
Self: 'a,
Returns a future that provides credentials.
source§fn fallback_on_interrupt(&self) -> Option<Credentials>
fn fallback_on_interrupt(&self) -> Option<Credentials>
Returns fallback credentials. Read more
Auto Trait Implementations§
impl Freeze for EnvironmentVariableCredentialsProvider
impl RefUnwindSafe for EnvironmentVariableCredentialsProvider
impl Send for EnvironmentVariableCredentialsProvider
impl Sync for EnvironmentVariableCredentialsProvider
impl Unpin for EnvironmentVariableCredentialsProvider
impl UnwindSafe for EnvironmentVariableCredentialsProvider
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.