[][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<Item = Vec<Self::Account>, Error = ()> + Send>;
fn get_account_id_from_username(
        &self,
        username: &Username
    ) -> Box<dyn Future<Item = <Self::Account as Account>::AccountId, Error = ()> + 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<Item = Vec<Self::Account>, Error = ()> + Send>

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

Loading content...

Implementors

Loading content...