Struct diem_types::account_state::AccountState[][src]

pub struct AccountState(_);

Implementations

impl AccountState[src]

pub fn get_account_address(&self) -> Result<Option<AccountAddress>>[src]

pub fn get_account_resource(&self) -> Result<Option<AccountResource>>[src]

pub fn get_balance_resources(
    &self,
    currency_codes: &[Identifier]
) -> Result<BTreeMap<Identifier, BalanceResource>>
[src]

pub fn get_preburn_balances(
    &self,
    currency_codes: &[Identifier]
) -> Result<BTreeMap<Identifier, PreburnResource>>
[src]

pub fn get_preburn_queue_balances(
    &self,
    currency_codes: &[Identifier]
) -> Result<BTreeMap<Identifier, PreburnQueueResource>>
[src]

pub fn get_chain_id_resource(&self) -> Result<Option<ChainIdResource>>[src]

pub fn get_configuration_resource(
    &self
) -> Result<Option<ConfigurationResource>>
[src]

pub fn get_diem_timestamp_resource(
    &self
) -> Result<Option<DiemTimestampResource>>
[src]

pub fn get_validator_config_resource(
    &self
) -> Result<Option<ValidatorConfigResource>>
[src]

pub fn get_validator_operator_config_resource(
    &self
) -> Result<Option<ValidatorOperatorConfigResource>>
[src]

pub fn get_freezing_bit(&self) -> Result<Option<FreezingBit>>[src]

pub fn get_account_role(
    &self,
    currency_codes: &[Identifier]
) -> Result<Option<AccountRole>>
[src]

pub fn get_validator_set(&self) -> Result<Option<ValidatorSet>>[src]

pub fn get_diem_version(&self) -> Result<Option<DiemVersion>>[src]

pub fn get_vm_publishing_option(&self) -> Result<Option<VMPublishingOption>>[src]

pub fn get_registered_currency_info_resources(
    &self
) -> Result<Vec<CurrencyInfoResource>>
[src]

pub fn get_diem_block_resource(&self) -> Result<Option<DiemBlockResource>>[src]

pub fn get(&self, key: &[u8]) -> Option<&Vec<u8>>[src]

pub fn get_resource_impl<T: DeserializeOwned>(
    &self,
    key: &[u8]
) -> Result<Option<T>>
[src]

pub fn insert(&mut self, key: Vec<u8>, value: Vec<u8>) -> Option<Vec<u8>>[src]

pub fn remove(&mut self, key: &[u8]) -> Option<Vec<u8>>[src]

pub fn iter(&self) -> impl Iterator<Item = (&Vec<u8>, &Vec<u8>)>[src]

pub fn get_config<T: OnChainConfig>(&self) -> Result<Option<T>>[src]

pub fn get_resource<T: MoveResource + DeserializeOwned>(
    &self
) -> Result<Option<T>>
[src]

pub fn get_modules(&self) -> impl Iterator<Item = &Vec<u8>>[src]

Return an iterator over the module values stored under this account

Trait Implementations

impl Debug for AccountState[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for AccountState[src]

fn default() -> AccountState[src]

Returns the “default value” for a type. Read more

impl<'de> Deserialize<'de> for AccountState[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<AccountState> for AccountState[src]

fn eq(&self, other: &AccountState) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &AccountState) -> bool[src]

This method tests for !=.

impl Serialize for AccountState[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl TryFrom<&'_ AccountState> for AccountStateBlob[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(account_state: &AccountState) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<&'_ AccountStateBlob> for AccountState[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(account_state_blob: &AccountStateBlob) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<(&'_ AccountResource, &'_ BalanceResource)> for AccountState[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(
    (account_resource, balance_resource): (&AccountResource, &BalanceResource)
) -> Result<Self>
[src]

Performs the conversion.

impl StructuralPartialEq for AccountState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

pub fn test_only_hash(&self) -> HashValue[src]

Generates a hash used only for tests.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]