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§
Required Methods§
Sourcefn constant_info(
&self,
pallet_name: &str,
constant_name: &str,
) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>
fn constant_info( &self, pallet_name: &str, constant_name: &str, ) -> Result<ConstantInfo<'_, Self::TypeId>, ConstantInfoError<'_>>
Get information about a constant