Struct frame_metadata::v14::PalletMetadata
source · [−]pub struct PalletMetadata<T: Form = MetaForm> {
pub name: T::String,
pub storage: Option<PalletStorageMetadata<T>>,
pub calls: Option<PalletCallMetadata<T>>,
pub event: Option<PalletEventMetadata<T>>,
pub constants: Vec<PalletConstantMetadata<T>>,
pub error: Option<PalletErrorMetadata<T>>,
pub index: u8,
}
Expand description
All metadata about an runtime pallet.
Fields
name: T::String
storage: Option<PalletStorageMetadata<T>>
calls: Option<PalletCallMetadata<T>>
event: Option<PalletEventMetadata<T>>
constants: Vec<PalletConstantMetadata<T>>
error: Option<PalletErrorMetadata<T>>
index: u8
Define the index of the pallet, this index will be used for the encoding of pallet event, call and origin variants.
Trait Implementations
impl<T: Form> Decode for PalletMetadata<T> where
T::String: Decode,
T::String: Decode,
Option<PalletStorageMetadata<T>>: Decode,
Option<PalletStorageMetadata<T>>: Decode,
Option<PalletCallMetadata<T>>: Decode,
Option<PalletCallMetadata<T>>: Decode,
Option<PalletEventMetadata<T>>: Decode,
Option<PalletEventMetadata<T>>: Decode,
Vec<PalletConstantMetadata<T>>: Decode,
Vec<PalletConstantMetadata<T>>: Decode,
Option<PalletErrorMetadata<T>>: Decode,
Option<PalletErrorMetadata<T>>: Decode,
impl<T: Form> Decode for PalletMetadata<T> where
T::String: Decode,
T::String: Decode,
Option<PalletStorageMetadata<T>>: Decode,
Option<PalletStorageMetadata<T>>: Decode,
Option<PalletCallMetadata<T>>: Decode,
Option<PalletCallMetadata<T>>: Decode,
Option<PalletEventMetadata<T>>: Decode,
Option<PalletEventMetadata<T>>: Decode,
Vec<PalletConstantMetadata<T>>: Decode,
Vec<PalletConstantMetadata<T>>: Decode,
Option<PalletErrorMetadata<T>>: Decode,
Option<PalletErrorMetadata<T>>: Decode,
impl<T: Form> Encode for PalletMetadata<T> where
T::String: Encode,
T::String: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
impl<T: Form> Encode for PalletMetadata<T> where
T::String: Encode,
T::String: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
type Output = PalletMetadata<PortableForm>
type Output = PalletMetadata<PortableForm>
The portable version of Self
.
Convert self
to the portable form by using the registry for caching.
impl<T: PartialEq + Form> PartialEq<PalletMetadata<T>> for PalletMetadata<T> where
T::String: PartialEq,
impl<T: PartialEq + Form> PartialEq<PalletMetadata<T>> for PalletMetadata<T> where
T::String: PartialEq,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T: Form> EncodeLike<PalletMetadata<T>> for PalletMetadata<T> where
T::String: Encode,
T::String: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletStorageMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletCallMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Option<PalletEventMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Vec<PalletConstantMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
Option<PalletErrorMetadata<T>>: Encode,
Auto Trait Implementations
impl<T> RefUnwindSafe for PalletMetadata<T> where
<T as Form>::String: RefUnwindSafe,
<T as Form>::Type: RefUnwindSafe,
impl<T> UnwindSafe for PalletMetadata<T> where
<T as Form>::String: UnwindSafe,
<T as Form>::Type: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more