CredentialProvider

Trait CredentialProvider 

Source
pub trait CredentialProvider:
    Debug
    + Send
    + Sync {
    type Credential;

    // Required method
    fn get_credential<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::Credential>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature cloud only.
Expand description

Provides credentials for use when signing requests

Required Associated Types§

Source

type Credential

The type of credential returned by this provider

Required Methods§

Source

fn get_credential<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::Credential>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return a credential

Implementors§