[][src]Trait interledger::service::AccountStore

pub trait AccountStore {
    type Account: Account;
    fn get_accounts(
        &self,
        account_ids: Vec<<Self::Account as Account>::AccountId>
    ) -> Box<dyn Future<Error = (), Item = Vec<Self::Account>> + 'static + Send>;
fn get_account_id_from_username(
        &self,
        username: &Username
    ) -> Box<dyn Future<Error = (), Item = <Self::Account as Account>::AccountId> + 'static + Send>; }

The base Store trait that can load a given account based on the ID.

Associated Types

Loading content...

Required methods

fn get_accounts(
    &self,
    account_ids: Vec<<Self::Account as Account>::AccountId>
) -> Box<dyn Future<Error = (), Item = Vec<Self::Account>> + 'static + Send>

fn get_account_id_from_username(
    &self,
    username: &Username
) -> Box<dyn Future<Error = (), Item = <Self::Account as Account>::AccountId> + 'static + Send>

Loading content...

Implementors

impl AccountStore for RedisStore[src]

type Account = Account

Loading content...