Struct pdotc::AccountDataGen
source · 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 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 size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<Balance: PartialEq> PartialEq<AccountDataGen<Balance>> for AccountDataGen<Balance>
impl<Balance: PartialEq> PartialEq<AccountDataGen<Balance>> for AccountDataGen<Balance>
source§fn eq(&self, other: &AccountDataGen<Balance>) -> bool
fn eq(&self, other: &AccountDataGen<Balance>) -> bool
self
and other
values to be equal, and is used
by ==
.impl<Balance> EncodeLike<AccountDataGen<Balance>> for AccountDataGen<Balance>where Balance: Encode,
impl<Balance: Eq> Eq for AccountDataGen<Balance>
impl<Balance> StructuralEq for AccountDataGen<Balance>
impl<Balance> StructuralPartialEq for AccountDataGen<Balance>
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§
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> 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 Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
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
.