pub enum MetadataVersion {
Show 14 variants
V0,
V1,
V2,
V3,
V4,
V5,
V6,
V7,
V8,
V9,
V10,
V11,
V12,
V13(MetadataV13),
}Expand description
Identifier of all the available Substrate metadata versions.
Variants§
Implementations§
Source§impl MetadataVersion
impl MetadataVersion
Sourcepub fn into_latest(self) -> Result<MetadataV13, Error>
pub fn into_latest(self) -> Result<MetadataV13, Error>
Consumes the object and returns the inner metadata structure, expecting the latest version. Results in an error if the version is not the latest.
Sourcepub fn version_number(&self) -> usize
pub fn version_number(&self) -> usize
Returns the version number as an integer.
pub fn into_inner(self) -> impl ModuleMetadataExt
Trait Implementations§
Source§impl Clone for MetadataVersion
impl Clone for MetadataVersion
Source§fn clone(&self) -> MetadataVersion
fn clone(&self) -> MetadataVersion
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 MetadataVersion
impl Debug for MetadataVersion
Source§impl Decode for MetadataVersion
impl Decode for MetadataVersion
Source§impl Encode for MetadataVersion
impl Encode for MetadataVersion
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 size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
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 PartialEq for MetadataVersion
impl PartialEq for MetadataVersion
impl EncodeLike for MetadataVersion
impl StructuralPartialEq for MetadataVersion
Auto Trait Implementations§
impl Freeze for MetadataVersion
impl RefUnwindSafe for MetadataVersion
impl Send for MetadataVersion
impl Sync for MetadataVersion
impl Unpin for MetadataVersion
impl UnwindSafe for MetadataVersion
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