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

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

Provided Methods§

source

fn created(_id: &AssetId, _owner: &AccountId) -> Result<(), ()>

Indicates that asset with id was successfully created by the owner

source

fn destroyed(_id: &AssetId) -> Result<(), ()>

Indicates that asset with id has just been destroyed

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AssetId, AccountId> AssetsCallback<AssetId, AccountId> for ()

Empty implementation in case no callbacks are required.

Implementors§