pub trait TokenCredential: Send + Sync {
    // Required method
    fn get_token<'life0, 'life1, 'async_trait>(
        &'life0 self,
        resource: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<TokenResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Represents a credential capable of providing an OAuth token.

Required Methods§

source

fn get_token<'life0, 'life1, 'async_trait>( &'life0 self, resource: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<TokenResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Gets a TokenResponse for the specified resource

Implementors§