referrerpolicy=no-referrer-when-downgrade

Trait AssetDefinition

Source
pub trait AssetDefinition {
    type Id;
}
Expand description

Trait for defining an asset. The definition must provide the Id type to identify the asset.

Required Associated Types§

Source

type Id

Type for identifying the asset.

Implementors§

Source§

impl<E, Op: AssetDefinition> AssetDefinition for UseEnsuredOrigin<E, Op>

Source§

type Id = <Op as AssetDefinition>::Id

Source§

impl<Id> AssetDefinition for DisabledOps<Id>

Source§

type Id = Id

Source§

impl<Id, M: Convert<Id, Result<Op::Id, DispatchError>>, Op: AssetDefinition> AssetDefinition for MapId<Id, Op::Id, M, Op>

Source§

type Id = Id

Source§

impl<RestoreOp, UpdateOp, StashOp> AssetDefinition for CombinedAssetOps<RestoreOp, UpdateOp, StashOp>
where RestoreOp: AssetDefinition, UpdateOp: AssetDefinition<Id = RestoreOp::Id>, StashOp: AssetDefinition<Id = RestoreOp::Id>,

Source§

type Id = <RestoreOp as AssetDefinition>::Id

Source§

impl<StashAccount, UpdateOp: AssetDefinition> AssetDefinition for StashAccountAssetOps<StashAccount, UpdateOp>

Source§

type Id = <UpdateOp as AssetDefinition>::Id