pub trait AssetsCallback<AssetId, AccountId> {
    // Provided methods
    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§

source

fn created(_id: &AssetId, _owner: &AccountId)

Indicates that asset with id was successfully created by the owner

source

fn destroyed(_id: &AssetId)

Indicates that asset with id has just been destroyed

Implementors§