referrerpolicy=no-referrer-when-downgrade

Trait AssetDefinition

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§

type Id

Type for identifying the asset.

Implementors§

§

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

§

type Id = <Op as AssetDefinition>::Id

§

impl<Id> AssetDefinition for DisabledOps<Id>

§

type Id = Id

§

impl<Id, M, Op> AssetDefinition for MapId<Id, <Op as AssetDefinition>::Id, M, Op>

§

type Id = Id

§

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

§

type Id = <RestoreOp as AssetDefinition>::Id

§

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

§

type Id = <UpdateOp as AssetDefinition>::Id