[][src]Trait interledger_btp::BtpStore

pub trait BtpStore {
    type Account: BtpAccount;
    fn get_account_from_btp_auth(
        &self,
        username: &Username,
        token: &str
    ) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>;
fn get_btp_outgoing_accounts(
        &self
    ) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>; }

The interface for Store implementations that can be used with the BTP Server.

Associated Types

Loading content...

Required methods

fn get_account_from_btp_auth(
    &self,
    username: &Username,
    token: &str
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>

Load Account details based on the auth token received via BTP.

fn get_btp_outgoing_accounts(
    &self
) -> Box<dyn Future<Item = Vec<Self::Account>, Error = ()> + Send>

Load accounts that have a ilp_over_btp_url configured

Loading content...

Implementors

Loading content...