pub enum EthereumStorageSchema {
Undefined,
V1,
V2,
V3,
}
Expand description
The schema version for Pallet Ethereum’s storage
Variants§
Trait Implementations§
source§impl Clone for EthereumStorageSchema
impl Clone for EthereumStorageSchema
source§fn clone(&self) -> EthereumStorageSchema
fn clone(&self) -> EthereumStorageSchema
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 Debug for EthereumStorageSchema
impl Debug for EthereumStorageSchema
source§impl Decode for EthereumStorageSchema
impl Decode for EthereumStorageSchema
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Default for EthereumStorageSchema
impl Default for EthereumStorageSchema
source§impl<'de> Deserialize<'de> for EthereumStorageSchema
impl<'de> Deserialize<'de> for EthereumStorageSchema
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for EthereumStorageSchema
impl Encode for EthereumStorageSchema
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.
§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.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Ord for EthereumStorageSchema
impl Ord for EthereumStorageSchema
source§fn cmp(&self, other: &EthereumStorageSchema) -> Ordering
fn cmp(&self, other: &EthereumStorageSchema) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EthereumStorageSchema
impl PartialEq for EthereumStorageSchema
source§fn eq(&self, other: &EthereumStorageSchema) -> bool
fn eq(&self, other: &EthereumStorageSchema) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EthereumStorageSchema
impl PartialOrd for EthereumStorageSchema
source§fn partial_cmp(&self, other: &EthereumStorageSchema) -> Option<Ordering>
fn partial_cmp(&self, other: &EthereumStorageSchema) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EthereumStorageSchema
impl Serialize for EthereumStorageSchema
impl Copy for EthereumStorageSchema
impl EncodeLike for EthereumStorageSchema
impl Eq for EthereumStorageSchema
impl StructuralEq for EthereumStorageSchema
impl StructuralPartialEq for EthereumStorageSchema
Auto Trait Implementations§
impl RefUnwindSafe for EthereumStorageSchema
impl Send for EthereumStorageSchema
impl Sync for EthereumStorageSchema
impl Unpin for EthereumStorageSchema
impl UnwindSafe for EthereumStorageSchema
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.