Trait cipherstash_dynamodb::traits::Credentials

pub trait Credentials: Send + Sync + 'static {
    type Token;

    // Required methods
    fn get_token<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Token, GetTokenError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn clear_token<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), ClearTokenError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}

Required Associated Types§

type Token

Required Methods§

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

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

Implementors§

§

impl Credentials for ServiceAccessKeyCredentials

§

impl Credentials for ServiceCredentials

§

impl Credentials for UserCredentials

§

type Token = UserToken

§

impl<C> Credentials for AutoRefresh<C>
where C: AutoRefreshable,

§

type Token = <C as Credentials>::Token

§

impl<C> Credentials for ServiceUserCredentials<C>
where C: Credentials<Token = UserToken>,

§

impl<T> Credentials for StaticCredentials<T>
where T: for<'a> TokenExpiry<'a> + Clone + Send + Sync + 'static,

§

type Token = T