pub trait AssetTypeGetter<AssetId, AssetType> {
    // Required methods
    fn get_asset_type(asset_id: AssetId) -> Option<AssetType>;
    fn get_asset_id(asset_type: AssetType) -> Option<AssetId>;
}
Expand description

Defines the trait to obtain a generic AssetType from a generic AssetId and vice versa

Required Methods§

source

fn get_asset_type(asset_id: AssetId) -> Option<AssetType>

source

fn get_asset_id(asset_type: AssetType) -> Option<AssetId>

Object Safety§

This trait is not object safe.

Implementors§