Struct diem_sdk::client::views::AccountView
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: AccountAddress
§balances: Vec<AmountView, Global>
§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§
§impl AccountView
impl AccountView
pub fn new( address: AccountAddress, account: &AccountResource, balances: BTreeMap<Identifier, BalanceResource, Global>, 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§
§impl Clone for AccountView
impl Clone for AccountView
§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 more§impl Debug for AccountView
impl Debug for AccountView
§impl<'de> Deserialize<'de> for AccountView
impl<'de> Deserialize<'de> for AccountView
§fn deserialize<__D>(
__deserializer: __D
) -> Result<AccountView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
§impl PartialEq<AccountView> for AccountView
impl PartialEq<AccountView> for AccountView
§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 ==
.§impl Serialize for AccountView
impl Serialize for AccountView
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.