[][src]Trait interledger_btp::BtpStore

pub trait BtpStore {
    type Account: BtpAccount;
    fn get_account_from_btp_token(
        &self,
        token: &str,
        username: Option<&str>
    ) -> Box<dyn Future<Item = 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_token(
    &self,
    token: &str,
    username: Option<&str>
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>

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

Loading content...

Implementors

Loading content...