pub struct ItemOf<F: Inspect<AccountId>, A: Get<<F as Inspect<AccountId>>::AssetId>, AccountId>(_);
Expand description

Convert a fungibles trait implementation into a fungible trait implementation by identifying a single item.

Trait Implementations

The type for managing what happens when an instance of Debt is dropped without being used.
The type for managing what happens when an instance of Credit is dropped without being used. Read more
Mints value into the account of who, creating it as needed. Read more
Increase the total issuance by amount and return the according imbalance. The imbalance will typically be used to increase an account by the same amount with e.g. resolve_into_existing or resolve_creating. Read more
Produce a pair of imbalances that cancel each other out exactly. Read more
Reduce the total issuance by amount and return the according imbalance. The imbalance will typically be used to reduce an account by the same amount with e.g. settle. Read more
The balance of who is increased in order to counter credit. If the whole of credit cannot be countered, then nothing is changed and the original credit is returned in an Err. Read more
The balance of who is decreased in order to counter debt. If the whole of debt cannot be countered, then nothing is changed and the original debt is returned in an Err. Read more
Removes value balance from who account if possible. Read more
Reduce the balance of some funds on hold in an account. Read more
Scalar type for representing balance of an account.
The total amount of issuance in the system.
The total amount of issuance in the system excluding those which are controlled by the system. Read more
The minimum balance any single account may have.
Get the balance of who which does not include funds which are exclusively allocated to subsystems of the chain (“on hold” or “reserved”). Read more
Get the total amount of funds whose ultimate bneficial ownership can be determined as who. Read more
Get the maximum amount that who can withdraw/transfer successfully based on whether the account should be kept alive (preservation) or whether we are willing to force the reduction and potentially go below user-level restrictions on the minimum amount of the account. Read more
Returns true if the balance of who may be increased by amount. Read more
Returns Success if the balance of who may be decreased by amount, otherwise the consequence. Read more
An identifier for a hold. Used for disambiguating different holds so that they can be individually replaced or removed and funds from one hold don’t accidentally become unreserved or slashed for another. Read more
Get the maximum amount that the total_balance_on_hold of who can be reduced successfully based on whether we are willing to force the reduction and potentially go below user-level restrictions on the minimum amount of the account. Note: This cannot bring the account into an inconsistent state with regards any required existential deposit. Read more
Returns true if it’s possible to place (additional) funds under a hold of a given reason. This may fail if the account has exhausted a limited number of concurrent holds or if it cannot be made to exist (e.g. there is no provider reference). Read more
Amount of funds on hold (for all hold reasons) of who.
Amount of funds on hold (for the given reason) of who.
Check to see if some amount of funds of who may be placed on hold for the given reason. Reasons why this may not be true: Read more
Check to see if some amount of funds of who may be placed on hold with the given reason. Reasons why this may not be true: Read more
An identifier for a freeze.
Amount of funds held in reserve by who for the given id.
The amount of the balance which can become frozen. Defaults to total_balance().
Returns true if it’s possible to introduce a freeze for the given id onto the account of who. This will be true as long as the implementor supports as many concurrent freeze locks as there are possible values of id. Read more
Increase the balance of who by exactly amount, minting new tokens. If that isn’t possible then an Err is returned and nothing is changed. Read more
Decrease the balance of who by at least amount, possibly slightly more in the case of minimum-balance requirements, burning the tokens. If that isn’t possible then an Err is returned and nothing is changed. If successful, the amount of tokens reduced is returned. Read more
Attempt to decrease the asset balance of who by amount. Read more
Attempt to increase the asset balance of who by amount. Read more
Transfer funds from one account into another.
Simple infallible function to force an account to have a particular balance, good for use in tests and benchmarks but not recommended for production code owing to the lack of error reporting. Read more
Hold some funds in an account. If a hold for reason is already in place, then this will increase it. Read more
Release up to amount held funds in an account. Read more
Attempt to decrease the balance of who which is held for the given reason by amount. Read more
Transfer held funds into a destination account. Read more
Transfer some amount of free balance from source to become owned by dest but on hold for reason. Read more
Prevent actions which would reduce the balance of the account of who below the given amount and identify this restriction though the given id. Unlike extend_freeze, any outstanding freeze in place for who under the id are dropped. Read more
Prevent the balance of the account of who from being reduced below the given amount and identify this restriction though the given id. Unlike set_freeze, this does not counteract any pre-existing freezes in place for who under the id. Also unlike set_freeze, in the case that amount is zero, this is no-op and never fails. Read more
Remove an existing lock.
Do something with the dust which has been destroyed from the system. Dust can be converted into a Credit with the Balanced trait impl. Read more
Forcefully set the balance of who to amount. Read more
Set the total issuance to amount.
Reduce the balance of who by amount. Read more
Increase the balance of who by amount. Read more
Create some dust and handle it with Self::handle_dust. This is an unbalanced operation and it must only be used when an account is modified in a raw fashion, outside of the entire fungibles API. The amount is capped at Self::minimum_balance() - 1. Read more
Reduce the active issuance by some amount.
Increase the active issuance by some amount, up to the outstanding amount reduced.
Forcefully set the balance on hold of who to amount. This is independent of any other balances on hold or the main (“free”) balance. Read more
Reduce the balance on hold of who by amount. Read more
Increase the balance on hold of who by amount. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more