Struct substrate_api_client::AccountDataGen [−][src]
pub struct AccountDataGen<Balance> {
pub free: Balance,
pub reserved: Balance,
pub misc_frozen: Balance,
pub fee_frozen: Balance,
}Expand description
Redefinition from pallet-balances. Currently, pallets break no_std builds, see:
https://github.com/paritytech/substrate/issues/8891
Fields
free: BalanceNon-reserved part of the balance. There may still be restrictions on this, but it is the total pool what may in principle be transferred, reserved and used for tipping.
This is the only balance that matters in terms of most operations on tokens. It alone is used to determine the balance when in the contract execution environment.
reserved: BalanceBalance which is reserved and may not be used at all.
This can still get slashed, but gets slashed last of all.
This balance is a ‘reserve’ balance that other subsystems use in order to set aside tokens that are still ‘owned’ by the account holder, but which are suspendable.
misc_frozen: BalanceThe amount that free may not drop below when withdrawing for anything except transaction
fee payment.
fee_frozen: BalanceThe amount that free may not drop below when withdrawing specifically for transaction
fee payment.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
impl<Balance> EncodeLike<AccountDataGen<Balance>> for AccountDataGen<Balance> where
Balance: Encode,
Balance: Encode,
Balance: Encode,
Balance: Encode,
Balance: Encode,
Balance: Encode,
Balance: Encode,
Balance: Encode, Auto Trait Implementations
impl<Balance> RefUnwindSafe for AccountDataGen<Balance> where
Balance: RefUnwindSafe, impl<Balance> Send for AccountDataGen<Balance> where
Balance: Send, impl<Balance> Sync for AccountDataGen<Balance> where
Balance: Sync, impl<Balance> Unpin for AccountDataGen<Balance> where
Balance: Unpin, impl<Balance> UnwindSafe for AccountDataGen<Balance> where
Balance: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>, Convert from a value of T into an equivalent instance of Self. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>, Consume self to return an equivalent value of T. Read more
The counterpart to unchecked_from.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> TConsume self to return an equivalent value of T.
pub fn vzip(self) -> Vimpl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,