referrerpolicy=no-referrer-when-downgrade
frame_support::traits::tokens::asset_ops

Trait IdAssignment

Source
pub trait IdAssignment {
    type ReportedId;
}
Expand description

An ID assignment approach to use in the “create” strategies.

The common ID assignments are:

Required Associated Types§

Source

type ReportedId

The reported ID type.

Examples:

  • AutoId returns the ID of the newly created asset
  • PredefinedId accepts the ID to be assigned to the newly created asset
  • DeriveAndReportId returns the ID derived from the input parameters

Implementors§

Source§

impl<Params, ReportedId> IdAssignment for DeriveAndReportId<Params, ReportedId>

Source§

type ReportedId = ReportedId