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§
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§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 for AccountBalance
impl PartialEq 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 for AccountBalance
impl PartialOrd 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 moresource§impl Serial for AccountBalance
impl Serial for AccountBalance
impl Copy for AccountBalance
impl Eq for AccountBalance
impl StructuralPartialEq for AccountBalance
Auto Trait Implementations§
impl Freeze for AccountBalance
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnwindSafe for AccountBalance
Blanket Implementations§
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