pub trait MetadataLocation {
    // Required methods
    fn pallet(&self) -> &str;
    fn item(&self) -> &str;
}
Expand description

Locate an item of a known type in the metadata. We should already know that the item we’re looking for is a call or event for instance, and then with this, we can dig up details for that item in the metadata.

Required Methods§

source

fn pallet(&self) -> &str

The pallet in which the item lives.

source

fn item(&self) -> &str

The name of the item.

Implementors§