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§
Sourcefn account(&self, deps: Deps<'_>) -> AbstractSdkResult<Account>
fn account(&self, deps: Deps<'_>) -> AbstractSdkResult<Account>
Get the account address
Provided Methods§
Sourcefn account_id(&self, deps: Deps<'_>) -> AbstractSdkResult<AccountId>
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.