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§
Sourcefn from_code(
account_id: AccountId,
auth: Vec<AuthMethod>,
code: &AccountCode,
) -> Self
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.
Sourcefn from_account(account: &Account) -> Self
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".