Struct unc_primitives::views::AccountView
source · pub struct AccountView {
pub amount: Balance,
pub pledging: Balance,
pub power: Power,
pub code_hash: CryptoHash,
pub storage_usage: StorageUsage,
pub storage_paid_at: BlockHeight,
}Expand description
A view of the account
Fields§
§amount: Balance§pledging: Balance§power: Power§code_hash: CryptoHash§storage_usage: StorageUsage§storage_paid_at: BlockHeightTODO(2271): deprecated.
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 From<&Account> for AccountView
impl From<&Account> for AccountView
source§impl From<&AccountView> for Account
impl From<&AccountView> for Account
source§fn from(view: &AccountView) -> Self
fn from(view: &AccountView) -> Self
Converts to this type from the input type.
source§impl From<Account> for AccountView
impl From<Account> for AccountView
source§impl From<AccountView> for Account
impl From<AccountView> for Account
source§fn from(view: AccountView) -> Self
fn from(view: AccountView) -> Self
Converts to this type from the input type.
source§impl PartialEq for AccountView
impl PartialEq 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 StructuralPartialEq for AccountView
Auto Trait Implementations§
impl Freeze for AccountView
impl RefUnwindSafe for AccountView
impl Send for AccountView
impl Sync for AccountView
impl Unpin for AccountView
impl UnwindSafe for AccountView
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.