OauthStorage

Trait OauthStorage 

Source
pub trait OauthStorage<U: User>: Storage<U> + Sync {
    // Required methods
    fn oauth_providers<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OauthProvider>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn oauth_provider_by_id_or_slug<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<OauthProvider>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn oauth_connection_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        connection_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<OauthConnection>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn oauth_connection_by_identifier<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        provider_id: &'life1 str,
        identifier: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<OauthConnection>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn create_oauth_connection<'life0, 'async_trait>(
        &'life0 self,
        connection: CreateOauthConnection,
    ) -> Pin<Box<dyn Future<Output = Result<OauthConnection, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_oauth_connection<'life0, 'async_trait>(
        &'life0 self,
        connection: UpdateOauthConnection,
    ) -> Pin<Box<dyn Future<Output = Result<OauthConnection, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_oauth_connection<'life0, 'life1, 'async_trait>(
        &'life0 self,
        connection_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

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

Source

fn oauth_provider_by_id_or_slug<'life0, 'life1, 'async_trait>( &'life0 self, provider_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<OauthProvider>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn oauth_connection_by_id<'life0, 'life1, 'async_trait>( &'life0 self, connection_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<OauthConnection>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn oauth_connection_by_identifier<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, provider_id: &'life1 str, identifier: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<OauthConnection>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn create_oauth_connection<'life0, 'async_trait>( &'life0 self, connection: CreateOauthConnection, ) -> Pin<Box<dyn Future<Output = Result<OauthConnection, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_oauth_connection<'life0, 'async_trait>( &'life0 self, connection: UpdateOauthConnection, ) -> Pin<Box<dyn Future<Output = Result<OauthConnection, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Implementors§