Trait object_store::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;
}
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§