pub type AssetAccountOf<T, I> = AssetAccount<<T as Config<I>>::Balance, DepositBalanceOf<T, I>, <T as Config<I>>::Extra, <T as SystemConfig>::AccountId>;
Aliased Type§
struct AssetAccountOf<T, I> {
pub balance: <T as Config<I>>::Balance,
pub status: AccountStatus,
pub reason: ExistenceReason<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, <T as Config>::AccountId>,
pub extra: <T as Config<I>>::Extra,
}
Fields§
§balance: <T as Config<I>>::Balance
The account’s balance.
The part of the balance
may be frozen by the Config::Freezer
. The on-hold portion is
not included here and is tracked by the Config::Holder
.
status: AccountStatus
The status of the account.
reason: ExistenceReason<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, <T as Config>::AccountId>
The reason for the existence of the account.
extra: <T as Config<I>>::Extra
Additional “sidecar” data, in case some other pallet wants to use this storage item.
Trait Implementations
Source§impl<Balance: Clone, DepositBalance: Clone, Extra: Clone, AccountId: Clone> Clone for AssetAccount<Balance, DepositBalance, Extra, AccountId>
impl<Balance: Clone, DepositBalance: Clone, Extra: Clone, AccountId: Clone> Clone for AssetAccount<Balance, DepositBalance, Extra, AccountId>
Source§fn clone(&self) -> AssetAccount<Balance, DepositBalance, Extra, AccountId>
fn clone(&self) -> AssetAccount<Balance, DepositBalance, Extra, AccountId>
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<Balance, DepositBalance, Extra, AccountId> Debug for AssetAccount<Balance, DepositBalance, Extra, AccountId>
impl<Balance, DepositBalance, Extra, AccountId> Debug for AssetAccount<Balance, DepositBalance, Extra, AccountId>
Source§impl<Balance, DepositBalance, Extra, AccountId> Decode for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: Decode,
ExistenceReason<DepositBalance, AccountId>: Decode,
Extra: Decode,
impl<Balance, DepositBalance, Extra, AccountId> Decode for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: Decode,
ExistenceReason<DepositBalance, AccountId>: Decode,
Extra: 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>
Attempt to deserialise the value from input.
§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,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl<Balance, DepositBalance, Extra, AccountId> Encode for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: Encode,
ExistenceReason<DepositBalance, AccountId>: Encode,
Extra: Encode,
impl<Balance, DepositBalance, Extra, AccountId> Encode for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: Encode,
ExistenceReason<DepositBalance, AccountId>: Encode,
Extra: Encode,
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
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, )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<Balance, DepositBalance, Extra, AccountId> MaxEncodedLen for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: MaxEncodedLen,
ExistenceReason<DepositBalance, AccountId>: MaxEncodedLen,
Extra: MaxEncodedLen,
impl<Balance, DepositBalance, Extra, AccountId> MaxEncodedLen for AssetAccount<Balance, DepositBalance, Extra, AccountId>where
Balance: MaxEncodedLen,
ExistenceReason<DepositBalance, AccountId>: MaxEncodedLen,
Extra: MaxEncodedLen,
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl<Balance: PartialEq, DepositBalance: PartialEq, Extra: PartialEq, AccountId: PartialEq> PartialEq for AssetAccount<Balance, DepositBalance, Extra, AccountId>
impl<Balance: PartialEq, DepositBalance: PartialEq, Extra: PartialEq, AccountId: PartialEq> PartialEq for AssetAccount<Balance, DepositBalance, Extra, AccountId>
Source§fn eq(
&self,
other: &AssetAccount<Balance, DepositBalance, Extra, AccountId>,
) -> bool
fn eq( &self, other: &AssetAccount<Balance, DepositBalance, Extra, AccountId>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.