Struct near_primitives_core::account::Account [−][src]
Per account information stored in the state.
Fields
amount: Balance
The total not locked tokens.
locked: Balance
The amount locked due to staking.
code_hash: CryptoHash
Hash of the code stored in the storage for this account.
storage_usage: StorageUsage
Storage used by the given account, includes account id, this struct, access keys and other data.
Trait Implementations
impl BorshDeserialize for Account where
Balance: BorshDeserialize,
Balance: BorshDeserialize,
CryptoHash: BorshDeserialize,
StorageUsage: BorshDeserialize,
[src]
Balance: BorshDeserialize,
Balance: BorshDeserialize,
CryptoHash: BorshDeserialize,
StorageUsage: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for Account where
Balance: BorshSerialize,
Balance: BorshSerialize,
CryptoHash: BorshSerialize,
StorageUsage: BorshSerialize,
[src]
Balance: BorshSerialize,
Balance: BorshSerialize,
CryptoHash: BorshSerialize,
StorageUsage: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for Account
[src]
impl Debug for Account
[src]
impl<'de> Deserialize<'de> for Account
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Account
[src]
impl PartialEq<Account> for Account
[src]
impl Serialize for Account
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Account
[src]
impl StructuralPartialEq for Account
[src]
Auto Trait Implementations
impl RefUnwindSafe for Account
[src]
impl Send for Account
[src]
impl Sync for Account
[src]
impl Unpin for Account
[src]
impl UnwindSafe for Account
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,