Struct diem_json_rpc_types::views::AccountView
source · pub struct AccountView {
pub address: AccountAddress,
pub balances: Vec<AmountView>,
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: AccountAddress
§balances: Vec<AmountView>
§sequence_number: u64
§authentication_key: BytesView
§sent_events_key: EventKey
§received_events_key: EventKey
§delegated_key_rotation_capability: bool
§delegated_withdrawal_capability: bool
§is_frozen: bool
§role: AccountRoleView
§version: Option<u64>
Implementations§
source§impl AccountView
impl AccountView
pub fn new( address: AccountAddress, account: &AccountResource, balances: BTreeMap<Identifier, BalanceResource>, account_role: AccountRole, freezing_bit: FreezingBit, version: u64 ) -> Self
pub fn try_from_account_state( address: AccountAddress, account_state: AccountState, version: u64 ) -> Result<Self>
Trait Implementations§
source§impl Clone for AccountView
impl Clone for AccountView
source§fn clone(&self) -> AccountView
fn clone(&self) -> AccountView
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccountView
impl Debug for AccountView
source§impl<'de> Deserialize<'de> for AccountView
impl<'de> Deserialize<'de> for AccountView
source§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
source§impl PartialEq<AccountView> for AccountView
impl PartialEq<AccountView> for AccountView
source§fn eq(&self, other: &AccountView) -> bool
fn eq(&self, other: &AccountView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccountView
impl Serialize for AccountView
impl Eq for AccountView
impl StructuralEq for AccountView
impl StructuralPartialEq for AccountView
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.