Trait AuthStorage

Source
pub trait AuthStorage: Send + Sync {
    // Required methods
    fn get_credential<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider: &'life1 str,
        credential_type: CredentialType,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Credential>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn set_credential<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider: &'life1 str,
        credential: Credential,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_credential<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider: &'life1 str,
        credential_type: CredentialType,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_credential<'life0, 'life1, 'async_trait>( &'life0 self, provider: &'life1 str, credential_type: CredentialType, ) -> Pin<Box<dyn Future<Output = Result<Option<Credential>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_credential<'life0, 'life1, 'async_trait>( &'life0 self, provider: &'life1 str, credential: Credential, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn remove_credential<'life0, 'life1, 'async_trait>( &'life0 self, provider: &'life1 str, credential_type: CredentialType, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§