[][src]Struct interledger_store_memory::AccountBuilder

pub struct AccountBuilder { /* fields omitted */ }

A helper to create Accounts.

Methods

impl AccountBuilder[src]

pub fn new() -> Self[src]

pub fn build(self) -> Account[src]

pub fn id(self, id: u64) -> Self[src]

pub fn ilp_address(self, ilp_address: &[u8]) -> Self[src]

pub fn additional_routes(self, routes: &[&[u8]]) -> Self[src]

pub fn asset_code(self, asset_code: String) -> Self[src]

pub fn asset_scale(self, asset_scale: u8) -> Self[src]

pub fn http_endpoint(self, http_endpoint: Url) -> Self[src]

pub fn http_incoming_authorization(self, auth_header: String) -> Self[src]

pub fn http_outgoing_authorization(self, auth_header: String) -> Self[src]

pub fn btp_uri(self, uri: Url) -> Self[src]

pub fn btp_incoming_token(self, auth_token: String) -> Self[src]

pub fn btp_incoming_username(self, username: Option<String>) -> Self[src]

pub fn max_packet_amount(self, amount: u64) -> Self[src]

Trait Implementations

impl Default for AccountBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self