Trait AccountIdentification

Source
pub trait AccountIdentification: Sized {
    // Required method
    fn account(&self, deps: Deps<'_>) -> AbstractSdkResult<Account>;

    // Provided method
    fn account_id(&self, deps: Deps<'_>) -> AbstractSdkResult<AccountId> { ... }
}
Expand description

Retrieve identifying information about an Account. This includes the account and account_id.

Required Methods§

Source

fn account(&self, deps: Deps<'_>) -> AbstractSdkResult<Account>

Get the account address

Provided Methods§

Source

fn account_id(&self, deps: Deps<'_>) -> AbstractSdkResult<AccountId>

Get the Account id for the current account.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§