Struct sp_metadata_ir::ExtrinsicMetadataIR
source · pub struct ExtrinsicMetadataIR<T: Form = MetaForm> {
pub ty: T::Type,
pub version: u8,
pub address_ty: T::Type,
pub call_ty: T::Type,
pub signature_ty: T::Type,
pub extra_ty: T::Type,
pub signed_extensions: Vec<SignedExtensionMetadataIR<T>>,
}
Expand description
Metadata of the extrinsic used by the runtime.
Fields§
§ty: T::Type
The type of the extrinsic.
Note: Field used for metadata V14 only.
version: u8
Extrinsic version.
address_ty: T::Type
The type of the address that signes the extrinsic
call_ty: T::Type
The type of the outermost Call enum.
signature_ty: T::Type
The type of the extrinsic’s signature.
extra_ty: T::Type
The type of the outermost Extra enum.
signed_extensions: Vec<SignedExtensionMetadataIR<T>>
The signed extensions in the order they appear in the extrinsic.
Trait Implementations§
source§impl<T: Clone + Form> Clone for ExtrinsicMetadataIR<T>where
T::Type: Clone,
impl<T: Clone + Form> Clone for ExtrinsicMetadataIR<T>where T::Type: Clone,
source§fn clone(&self) -> ExtrinsicMetadataIR<T>
fn clone(&self) -> ExtrinsicMetadataIR<T>
Returns a copy 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<T: Form> Encode for ExtrinsicMetadataIR<T>where
T::Type: Encode,
Vec<SignedExtensionMetadataIR<T>>: Encode,
impl<T: Form> Encode for ExtrinsicMetadataIR<T>where T::Type: Encode, Vec<SignedExtensionMetadataIR<T>>: Encode,
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<ExtrinsicMetadataIR<MetaForm>> for ExtrinsicMetadata
impl From<ExtrinsicMetadataIR<MetaForm>> for ExtrinsicMetadata
source§fn from(ir: ExtrinsicMetadataIR) -> Self
fn from(ir: ExtrinsicMetadataIR) -> Self
Converts to this type from the input type.
source§impl From<ExtrinsicMetadataIR<MetaForm>> for ExtrinsicMetadata
impl From<ExtrinsicMetadataIR<MetaForm>> for ExtrinsicMetadata
source§fn from(ir: ExtrinsicMetadataIR) -> Self
fn from(ir: ExtrinsicMetadataIR) -> Self
Converts to this type from the input type.
source§impl IntoPortable for ExtrinsicMetadataIR
impl IntoPortable for ExtrinsicMetadataIR
§type Output = ExtrinsicMetadataIR<PortableForm>
type Output = ExtrinsicMetadataIR<PortableForm>
The portable version of
Self
.source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.source§impl<T: PartialEq + Form> PartialEq<ExtrinsicMetadataIR<T>> for ExtrinsicMetadataIR<T>where
T::Type: PartialEq,
impl<T: PartialEq + Form> PartialEq<ExtrinsicMetadataIR<T>> for ExtrinsicMetadataIR<T>where T::Type: PartialEq,
source§fn eq(&self, other: &ExtrinsicMetadataIR<T>) -> bool
fn eq(&self, other: &ExtrinsicMetadataIR<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.