Struct diem_types::account_state::AccountState [−][src]
pub struct AccountState(_);
Implementations
pub fn get_preburn_queue_balances(
&self
) -> Result<BTreeMap<Identifier, PreburnQueueResource>>
pub fn get_validator_operator_config_resource(
&self
) -> Result<Option<ValidatorOperatorConfigResource>>
Return an iterator over the module values stored under this account
Return an iterator over all resources stored under this account.
Note that resource access Path
s that fail to deserialize will be
silently ignored.
pub fn get_resources_with_type<T: MoveResource>(
&self
) -> impl Iterator<Item = Result<(StructTag, T)>> + '_
pub fn get_resources_with_type<T: MoveResource>(
&self
) -> impl Iterator<Item = Result<(StructTag, T)>> + '_
Given a particular MoveResource
, return an iterator with all instances
of that resource (there may be multiple with different generic type parameters).
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn try_from(
(account_resource, balance_resource): (&AccountResource, &BalanceResource)
) -> Result<Self>
fn try_from(
(account_resource, balance_resource): (&AccountResource, &BalanceResource)
) -> Result<Self>
Performs the conversion.