Trait orml_traits::asset_registry::Inspect
source · pub trait Inspect {
type AssetId;
type Balance: Clone + Debug + Eq + PartialEq;
type CustomMetadata: Parameter + Member + TypeInfo;
type StringLimit: Get<u32>;
// Required methods
fn asset_id(location: &Location) -> Option<Self::AssetId>;
fn metadata(
asset_id: &Self::AssetId
) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>;
fn metadata_by_location(
location: &Location
) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>;
fn location(
asset_id: &Self::AssetId
) -> Result<Option<Location>, DispatchError>;
}
Required Associated Types§
sourcetype CustomMetadata: Parameter + Member + TypeInfo
type CustomMetadata: Parameter + Member + TypeInfo
Custom metadata type
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
Name and symbol string limit
Required Methods§
fn asset_id(location: &Location) -> Option<Self::AssetId>
fn metadata( asset_id: &Self::AssetId ) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>
fn metadata_by_location( location: &Location ) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>
fn location(asset_id: &Self::AssetId) -> Result<Option<Location>, DispatchError>
Object Safety§
This trait is not object safe.