pub trait PalletInfo {
    fn index<P: 'static>() -> Option<usize>;
fn name<P: 'static>() -> Option<&'static str>;
fn module_name<P: 'static>() -> Option<&'static str>;
fn crate_version<P: 'static>() -> Option<CrateVersion>; }
Expand description

Provides information about the pallet itself and its setup in the runtime.

An implementor should be able to provide information about each pallet that is configured in construct_runtime!.

Required methods

Convert the given pallet P into its index as configured in the runtime.

Convert the given pallet P into its name as configured in the runtime.

Convert the given pallet P into its Rust module name as used in construct_runtime!.

Convert the given pallet P into its containing crate version.

Implementors