Struct concordium_std::AccountBalance
source · pub struct AccountBalance {
pub total: Amount,
pub staked: Amount,
pub locked: Amount,
}
Expand description
The current public balances of an account.
Fields§
§total: Amount
The total balance of the account. Note that part of this balance might be staked and/or locked in scheduled transfers.
staked: Amount
The current staked amount of the account. This amount is used for staking.
locked: Amount
The current amount locked in releases that resulted from transfers with schedule. A locked amount can still be used for staking.
Implementations§
source§impl AccountBalance
impl AccountBalance
Trait Implementations§
source§impl Clone for AccountBalance
impl Clone for AccountBalance
source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
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 AccountBalance
impl Debug for AccountBalance
source§impl Deserial for AccountBalance
impl Deserial for AccountBalance
source§fn deserial<R>(source: &mut R) -> Result<AccountBalance, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<AccountBalance, ParseError>where R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl Ord for AccountBalance
impl Ord for AccountBalance
source§fn cmp(&self, other: &AccountBalance) -> Ordering
fn cmp(&self, other: &AccountBalance) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
source§fn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AccountBalance> for AccountBalance
impl PartialOrd<AccountBalance> for AccountBalance
source§fn partial_cmp(&self, other: &AccountBalance) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountBalance) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more