AccountClient

Trait AccountClient 

Source
pub trait AccountClient {
    // Required methods
    fn find_accounts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<FindAccountsResponse, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_account<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 AccountData,
    ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_account<'life0, 'life1, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_account<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        value: &'life2 AccountData,
    ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_account<'life0, 'life1, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteAccountResponse, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_account_plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Plan, Error<AccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn find_accounts<'life0, 'life1, 'async_trait>( &'life0 self, email: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<FindAccountsResponse, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_account<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 AccountData, ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_account<'life0, 'life1, 'async_trait>( &'life0 self, account_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn update_account<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, account_id: &'life1 str, value: &'life2 AccountData, ) -> Pin<Box<dyn Future<Output = Result<Account, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_account<'life0, 'life1, 'async_trait>( &'life0 self, account_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<DeleteAccountResponse, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_account_plan<'life0, 'life1, 'async_trait>( &'life0 self, account_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Plan, Error<AccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§