pub struct TransactionExtensionMetadataIR<T: Form = MetaForm> {
pub identifier: T::String,
pub ty: T::Type,
pub implicit: T::Type,
}
Expand description
Metadata of an extrinsic’s signed extension.
Fields§
§identifier: T::String
The unique signed extension identifier, which may be different from the type name.
ty: T::Type
The type of the signed extension, with the data to be included in the extrinsic.
implicit: T::Type
The type of the implicit data, with the data to be included in the signed payload.
Trait Implementations§
Source§impl<T: Clone + Form> Clone for TransactionExtensionMetadataIR<T>
impl<T: Clone + Form> Clone for TransactionExtensionMetadataIR<T>
Source§fn clone(&self) -> TransactionExtensionMetadataIR<T>
fn clone(&self) -> TransactionExtensionMetadataIR<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 TransactionExtensionMetadataIR<T>
impl<T: Form> Encode for TransactionExtensionMetadataIR<T>
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: 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.
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<TransactionExtensionMetadataIR> for SignedExtensionMetadata
impl From<TransactionExtensionMetadataIR> for SignedExtensionMetadata
Source§fn from(ir: TransactionExtensionMetadataIR) -> Self
fn from(ir: TransactionExtensionMetadataIR) -> Self
Converts to this type from the input type.
Source§impl From<TransactionExtensionMetadataIR> for SignedExtensionMetadata
impl From<TransactionExtensionMetadataIR> for SignedExtensionMetadata
Source§fn from(ir: TransactionExtensionMetadataIR) -> Self
fn from(ir: TransactionExtensionMetadataIR) -> Self
Converts to this type from the input type.
Source§impl From<TransactionExtensionMetadataIR> for TransactionExtensionMetadata
impl From<TransactionExtensionMetadataIR> for TransactionExtensionMetadata
Source§fn from(ir: TransactionExtensionMetadataIR) -> Self
fn from(ir: TransactionExtensionMetadataIR) -> Self
Converts to this type from the input type.
Source§impl IntoPortable for TransactionExtensionMetadataIR
impl IntoPortable for TransactionExtensionMetadataIR
Source§type Output = TransactionExtensionMetadataIR<PortableForm>
type Output = TransactionExtensionMetadataIR<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 for TransactionExtensionMetadataIR<T>
impl<T: PartialEq + Form> PartialEq for TransactionExtensionMetadataIR<T>
Source§fn eq(&self, other: &TransactionExtensionMetadataIR<T>) -> bool
fn eq(&self, other: &TransactionExtensionMetadataIR<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T: Form> EncodeLike for TransactionExtensionMetadataIR<T>
impl<T: Eq + Form> Eq for TransactionExtensionMetadataIR<T>
impl<T: Form> StructuralPartialEq for TransactionExtensionMetadataIR<T>
Auto Trait Implementations§
impl<T> Freeze for TransactionExtensionMetadataIR<T>
impl<T> RefUnwindSafe for TransactionExtensionMetadataIR<T>
impl<T> Send for TransactionExtensionMetadataIR<T>
impl<T> Sync for TransactionExtensionMetadataIR<T>
impl<T> Unpin for TransactionExtensionMetadataIR<T>
impl<T> UnwindSafe for TransactionExtensionMetadataIR<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