pub struct ExtrinsicMetadata { /* private fields */ }Expand description
Metadata for the extrinsic type.
Implementations§
Source§impl ExtrinsicMetadata
impl ExtrinsicMetadata
Sourcepub fn supported_versions(&self) -> &[u8] ⓘ
pub fn supported_versions(&self) -> &[u8] ⓘ
Which extrinsic versions are supported.
Sourcepub fn transaction_extensions_by_version(
&self,
version: u8,
) -> Option<impl Iterator<Item = TransactionExtensionMetadata<'_>>>
pub fn transaction_extensions_by_version( &self, version: u8, ) -> Option<impl Iterator<Item = TransactionExtensionMetadata<'_>>>
The extra/additional information associated with the extrinsic.
Sourcepub fn transaction_extension_version_to_use_for_encoding(&self) -> u8
pub fn transaction_extension_version_to_use_for_encoding(&self) -> u8
When constructing a v5 extrinsic, use this transaction extensions version.
Sourcepub fn transaction_extensions_to_use_for_encoding(
&self,
) -> impl Iterator<Item = TransactionExtensionMetadata<'_>>
pub fn transaction_extensions_to_use_for_encoding( &self, ) -> impl Iterator<Item = TransactionExtensionMetadata<'_>>
An iterator of the transaction extensions to use when encoding a transaction. Basically equivalent to
self.transaction_extensions_by_version(self.transaction_extension_version_to_use_for_encoding()).unwrap()
Sourcepub fn transaction_extension_version_to_use_for_decoding(&self) -> u8
pub fn transaction_extension_version_to_use_for_decoding(&self) -> u8
When presented with a v4 extrinsic that has no version, treat it as being this version.
Trait Implementations§
Source§impl Clone for ExtrinsicMetadata
impl Clone for ExtrinsicMetadata
Source§fn clone(&self) -> ExtrinsicMetadata
fn clone(&self) -> ExtrinsicMetadata
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 moreAuto Trait Implementations§
impl Freeze for ExtrinsicMetadata
impl RefUnwindSafe for ExtrinsicMetadata
impl Send for ExtrinsicMetadata
impl Sync for ExtrinsicMetadata
impl Unpin for ExtrinsicMetadata
impl UnwindSafe for ExtrinsicMetadata
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