pub struct LatestRuntimeMetadata {
pub types: PortableRegistry,
pub pallets: Vec<PalletMetadata<PortableForm>>,
pub extrinsic: ExtrinsicMetadata<PortableForm>,
pub ty: <PortableForm as Form>::Type,
}Expand description
The metadata of a runtime.
Fields§
§types: PortableRegistryType registry containing all types used in the metadata.
pallets: Vec<PalletMetadata<PortableForm>>Metadata of all the pallets.
extrinsic: ExtrinsicMetadata<PortableForm>Metadata of the extrinsic.
ty: <PortableForm as Form>::TypeThe type of the Runtime.
Implementations§
Source§impl RuntimeMetadataV14
impl RuntimeMetadataV14
Sourcepub fn new(
pallets: Vec<PalletMetadata>,
extrinsic: ExtrinsicMetadata,
runtime_type: MetaType,
) -> RuntimeMetadataV14
pub fn new( pallets: Vec<PalletMetadata>, extrinsic: ExtrinsicMetadata, runtime_type: MetaType, ) -> RuntimeMetadataV14
Create a new instance of RuntimeMetadataV14.
Trait Implementations§
Source§impl Clone for RuntimeMetadataV14
impl Clone for RuntimeMetadataV14
Source§fn clone(&self) -> RuntimeMetadataV14
fn clone(&self) -> RuntimeMetadataV14
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeMetadataV14
impl Debug for RuntimeMetadataV14
Source§impl Decode for RuntimeMetadataV14
impl Decode for RuntimeMetadataV14
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<RuntimeMetadataV14, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<RuntimeMetadataV14, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for RuntimeMetadataV14
impl Encode for RuntimeMetadataV14
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<RuntimeMetadataV14> for Metadata
impl From<RuntimeMetadataV14> for Metadata
Source§fn from(v: LatestRuntimeMetadata) -> Self
fn from(v: LatestRuntimeMetadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeMetadataV14
impl PartialEq for RuntimeMetadataV14
Source§impl Serialize for RuntimeMetadataV14
impl Serialize for RuntimeMetadataV14
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl EncodeLike for RuntimeMetadataV14
impl Eq for RuntimeMetadataV14
impl StructuralPartialEq for RuntimeMetadataV14
Auto Trait Implementations§
impl Freeze for RuntimeMetadataV14
impl RefUnwindSafe for RuntimeMetadataV14
impl Send for RuntimeMetadataV14
impl Sync for RuntimeMetadataV14
impl Unpin for RuntimeMetadataV14
impl UnwindSafe for RuntimeMetadataV14
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