ConstantTypeInfo

Trait ConstantTypeInfo 

Source
pub trait ConstantTypeInfo {
    type TypeId: Clone;

    // Required method
    fn constant_info(
        &self,
        pallet_name: &str,
        constant_name: &str,
    ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>;
}
Expand description

This can be implemented for anything capable of providing Constant information.

Required Associated Types§

Source

type TypeId: Clone

The type of type IDs that we are using to obtain type information.

Required Methods§

Source

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Get information about a constant

Implementations on Foreign Types§

Source§

impl ConstantTypeInfo for RuntimeMetadataV8

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV9

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV10

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV11

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV12

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV13

Source§

type TypeId = LookupName

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV14

Source§

type TypeId = u32

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV15

Source§

type TypeId = u32

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Source§

impl ConstantTypeInfo for RuntimeMetadataV16

Source§

type TypeId = u32

Source§

fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>

Implementors§