Skip to main content

AccountInterfaceExt

Trait AccountInterfaceExt 

Source
pub trait AccountInterfaceExt {
    // Required methods
    fn from_code(
        account_id: AccountId,
        auth: Vec<AuthMethod>,
        code: &AccountCode,
    ) -> Self;
    fn from_account(account: &Account) -> Self;
}
Expand description

An extension for AccountInterface that allows instantiation from higher-level types.

Required Methods§

Source

fn from_code( account_id: AccountId, auth: Vec<AuthMethod>, code: &AccountCode, ) -> Self

Creates a new AccountInterface instance from the provided account ID, authentication methods and account code.

Source

fn from_account(account: &Account) -> Self

Creates a new AccountInterface instance from the provided Account.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§