Struct sp_metadata_ir::MetadataIR
source · pub struct MetadataIR<T: Form = MetaForm> {
pub pallets: Vec<PalletMetadataIR<T>>,
pub extrinsic: ExtrinsicMetadataIR<T>,
pub ty: T::Type,
pub apis: Vec<RuntimeApiMetadataIR<T>>,
pub outer_enums: OuterEnumsIR<T>,
}
Expand description
The intermediate representation for the runtime metadata. Contains the needed context that allows conversion to multiple metadata versions.
Note
Further fields could be added or removed to ensure proper conversion. When the IR does not contain enough information to generate a specific version of the runtime metadata an appropriate default value is used (ie, empty vector).
Fields§
§pallets: Vec<PalletMetadataIR<T>>
Pallet metadata.
extrinsic: ExtrinsicMetadataIR<T>
Metadata of the extrinsic.
ty: T::Type
The type of the Runtime
.
apis: Vec<RuntimeApiMetadataIR<T>>
Metadata of the Runtime API.
outer_enums: OuterEnumsIR<T>
The outer enums types as found in the runtime.
Trait Implementations§
source§impl From<MetadataIR> for RuntimeMetadataV14
impl From<MetadataIR> for RuntimeMetadataV14
source§fn from(ir: MetadataIR) -> Self
fn from(ir: MetadataIR) -> Self
Converts to this type from the input type.
source§impl From<MetadataIR> for RuntimeMetadataV15
impl From<MetadataIR> for RuntimeMetadataV15
source§fn from(ir: MetadataIR) -> Self
fn from(ir: MetadataIR) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for MetadataIR<T>
impl<T> Send for MetadataIR<T>
impl<T> Sync for MetadataIR<T>
impl<T> Unpin for MetadataIR<T>
impl<T> UnwindSafe for MetadataIR<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more