pub trait AssetsCallback<AssetId, AccountId> {
    fn created(_id: &AssetId, _owner: &AccountId) { ... }
    fn destroyed(_id: &AssetId) { ... }
}
Expand description

Trait with callbacks that are executed after successfull asset creation or destruction.

Provided Methods§

Indicates that asset with id was successfully created by the owner

Indicates that asset with id has just been destroyed

Implementations on Foreign Types§

Empty implementation in case no callbacks are required.

Implementors§