pub struct AccountDataGen<Balance> {
pub free: Balance,
pub reserved: Balance,
pub frozen: Balance,
pub flags: ExtraFlags,
}
Expand description
Redefinition from pallet-balances
.
Fields§
§free: Balance
Non-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: Balance
Balance 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.
frozen: Balance
The amount that free
may not drop below when reducing the balance,
except for actions where the account owner cannot reasonably benefit
from thr balance reduction, such as slashing.
flags: ExtraFlags
Extra information about this account. The MSB is a flag indicating whether the new ref- counting logic is in place for this account.
Trait Implementations§
Source§impl<Balance: Clone> Clone for AccountDataGen<Balance>
impl<Balance: Clone> Clone for AccountDataGen<Balance>
Source§fn clone(&self) -> AccountDataGen<Balance>
fn clone(&self) -> AccountDataGen<Balance>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<Balance: Debug> Debug for AccountDataGen<Balance>
impl<Balance: Debug> Debug for AccountDataGen<Balance>
Source§impl<Balance> Decode for AccountDataGen<Balance>where
Balance: Decode,
impl<Balance> Decode for AccountDataGen<Balance>where
Balance: Decode,
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Source§impl<Balance: Default> Default for AccountDataGen<Balance>
impl<Balance: Default> Default for AccountDataGen<Balance>
Source§fn default() -> AccountDataGen<Balance>
fn default() -> AccountDataGen<Balance>
Source§impl<'de, Balance> Deserialize<'de> for AccountDataGen<Balance>where
Balance: Deserialize<'de>,
impl<'de, Balance> Deserialize<'de> for AccountDataGen<Balance>where
Balance: Deserialize<'de>,
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>,
Source§impl<Balance> Encode for AccountDataGen<Balance>where
Balance: Encode,
impl<Balance> Encode for AccountDataGen<Balance>where
Balance: Encode,
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§impl<Balance: PartialEq> PartialEq for AccountDataGen<Balance>
impl<Balance: PartialEq> PartialEq for AccountDataGen<Balance>
impl<Balance> EncodeLike for AccountDataGen<Balance>where
Balance: Encode,
impl<Balance: Eq> Eq for AccountDataGen<Balance>
impl<Balance> StructuralPartialEq for AccountDataGen<Balance>
Auto Trait Implementations§
impl<Balance> Freeze for AccountDataGen<Balance>where
Balance: Freeze,
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.