pub struct UpgradeClientStatePath {
pub upgrade_path: String,
pub height: u64,
}
Fields§
§upgrade_path: String
§height: u64
Implementations§
Source§impl UpgradeClientStatePath
impl UpgradeClientStatePath
Sourcepub fn new_with_default_path(height: u64) -> UpgradeClientStatePath
pub fn new_with_default_path(height: u64) -> UpgradeClientStatePath
Create with the default upgrade path
Trait Implementations§
Source§impl BorshDeserialize for UpgradeClientStatePath
impl BorshDeserialize for UpgradeClientStatePath
fn deserialize_reader<__R>(
reader: &mut __R,
) -> Result<UpgradeClientStatePath, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for UpgradeClientStatePath
impl Clone for UpgradeClientStatePath
Source§fn clone(&self) -> UpgradeClientStatePath
fn clone(&self) -> UpgradeClientStatePath
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 UpgradeClientStatePath
impl Debug for UpgradeClientStatePath
Source§impl Decode for UpgradeClientStatePath
impl Decode for UpgradeClientStatePath
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<UpgradeClientStatePath, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<UpgradeClientStatePath, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§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
Source§impl<'de> Deserialize<'de> for UpgradeClientStatePath
impl<'de> Deserialize<'de> for UpgradeClientStatePath
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpgradeClientStatePath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpgradeClientStatePath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UpgradeClientStatePath
impl Display for UpgradeClientStatePath
Source§impl Encode for UpgradeClientStatePath
impl Encode for UpgradeClientStatePath
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>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &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<UpgradeClientStatePath> for Path
impl From<UpgradeClientStatePath> for Path
Source§fn from(value: UpgradeClientStatePath) -> Path
fn from(value: UpgradeClientStatePath) -> Path
Converts to this type from the input type.
Source§impl Hash for UpgradeClientStatePath
impl Hash for UpgradeClientStatePath
Source§impl Ord for UpgradeClientStatePath
impl Ord for UpgradeClientStatePath
Source§fn cmp(&self, other: &UpgradeClientStatePath) -> Ordering
fn cmp(&self, other: &UpgradeClientStatePath) -> 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 UpgradeClientStatePath
impl PartialEq for UpgradeClientStatePath
Source§impl PartialOrd for UpgradeClientStatePath
impl PartialOrd for UpgradeClientStatePath
Source§impl Serialize for UpgradeClientStatePath
impl Serialize for UpgradeClientStatePath
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TypeInfo for UpgradeClientStatePath
impl TypeInfo for UpgradeClientStatePath
impl EncodeLike for UpgradeClientStatePath
impl Eq for UpgradeClientStatePath
impl StructuralPartialEq for UpgradeClientStatePath
Auto Trait Implementations§
impl Freeze for UpgradeClientStatePath
impl RefUnwindSafe for UpgradeClientStatePath
impl Send for UpgradeClientStatePath
impl Sync for UpgradeClientStatePath
impl Unpin for UpgradeClientStatePath
impl UnwindSafe for UpgradeClientStatePath
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