pub struct CredentialsProvider { /* private fields */ }Expand description
A credentials provider is an object that has an asynchronous query function for retrieving AWS credentials
Implementations§
Source§impl CredentialsProvider
impl CredentialsProvider
Sourcepub fn new_chain_default(
allocator: &Allocator,
options: CredentialsProviderChainDefaultOptions<'_>,
) -> Result<CredentialsProvider, Error>
pub fn new_chain_default( allocator: &Allocator, options: CredentialsProviderChainDefaultOptions<'_>, ) -> Result<CredentialsProvider, Error>
Creates the default credential provider chain as used by most AWS SDKs
Sourcepub fn new_anonymous(
allocator: &Allocator,
) -> Result<CredentialsProvider, Error>
pub fn new_anonymous( allocator: &Allocator, ) -> Result<CredentialsProvider, Error>
Creates the anonymous credential provider. Anonynous credentials provider gives you anonymous credentials which can be used to skip the signing process.
Sourcepub fn new_profile(
allocator: &Allocator,
options: CredentialsProviderProfileOptions<'_>,
) -> Result<CredentialsProvider, Error>
pub fn new_profile( allocator: &Allocator, options: CredentialsProviderProfileOptions<'_>, ) -> Result<CredentialsProvider, Error>
Creates the profile credential provider.
Sourcepub fn new_static(
allocator: &Allocator,
options: CredentialsProviderStaticOptions<'_>,
) -> Result<CredentialsProvider, Error>
pub fn new_static( allocator: &Allocator, options: CredentialsProviderStaticOptions<'_>, ) -> Result<CredentialsProvider, Error>
Creates a static credential provider that always returns the given credentials
Trait Implementations§
Source§impl Clone for CredentialsProvider
impl Clone for CredentialsProvider
Source§fn clone(&self) -> CredentialsProvider
fn clone(&self) -> CredentialsProvider
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 CredentialsProvider
impl Debug for CredentialsProvider
Source§impl Drop for CredentialsProvider
impl Drop for CredentialsProvider
impl Send for CredentialsProvider
impl Sync for CredentialsProvider
Auto Trait Implementations§
impl Freeze for CredentialsProvider
impl RefUnwindSafe for CredentialsProvider
impl Unpin for CredentialsProvider
impl UnwindSafe for CredentialsProvider
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