substrate_constructor::traits

Trait AsPalletMetadata

Source
pub trait AsPalletMetadata<E: ExternalMemory> {
    // Required methods
    fn name(&self) -> String;
    fn storage(&self) -> Option<PalletStorageMetadata<PortableForm>>;
    fn calls(&self) -> Option<PalletCallMetadata<PortableForm>>;
    fn event(&self) -> Option<PalletEventMetadata<PortableForm>>;
    fn constants(&self) -> Vec<PalletConstantMetadata<PortableForm>>;
    fn error(&self) -> Option<PalletErrorMetadata<PortableForm>>;
    fn index(&self) -> u8;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl<E: ExternalMemory> AsPalletMetadata<E> for PalletMetadata<PortableForm>

Source§

impl<E: ExternalMemory> AsPalletMetadata<E> for PalletMetadata<PortableForm>

Implementors§