Struct diem_sdk::client::views::AccountView [−][src]
pub struct AccountView {
pub address: AccountAddress,
pub balances: Vec<AmountView, Global>,
pub sequence_number: u64,
pub authentication_key: BytesView,
pub sent_events_key: EventKey,
pub received_events_key: EventKey,
pub delegated_key_rotation_capability: bool,
pub delegated_withdrawal_capability: bool,
pub is_frozen: bool,
pub role: AccountRoleView,
pub version: Option<u64>,
}Fields
address: AccountAddressbalances: Vec<AmountView, Global>sequence_number: u64authentication_key: BytesViewsent_events_key: EventKeyreceived_events_key: EventKeydelegated_key_rotation_capability: booldelegated_withdrawal_capability: boolis_frozen: boolrole: AccountRoleViewversion: Option<u64>Implementations
pub fn new(
address: AccountAddress,
account: &DiemAccountResource,
balances: BTreeMap<Identifier, BalanceResource>,
account_role: AccountRole,
freezing_bit: FreezingBit,
version: u64
) -> AccountView
pub fn try_from_account_state(
address: AccountAddress,
account_state: AccountState,
version: u64
) -> Result<AccountView, Error>
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountView, <__D as Deserializer<'de>>::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 !=.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccountView
impl Send for AccountView
impl Sync for AccountView
impl Unpin for AccountView
impl UnwindSafe for AccountView
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.