pub struct ClientConsensusStatePath {
pub client_id: ClientId,
pub revision_number: u64,
pub revision_height: u64,
}Fields§
§client_id: ClientId§revision_number: u64§revision_height: u64Implementations§
source§impl ClientConsensusStatePath
impl ClientConsensusStatePath
sourcepub fn new(
client_id: ClientId,
revision_number: u64,
revision_height: u64,
) -> ClientConsensusStatePath
pub fn new( client_id: ClientId, revision_number: u64, revision_height: u64, ) -> ClientConsensusStatePath
Constructs a new ClientConsensusStatePath.
Trait Implementations§
source§impl BorshDeserialize for ClientConsensusStatePath
impl BorshDeserialize for ClientConsensusStatePath
fn deserialize_reader<__R>(
reader: &mut __R,
) -> Result<ClientConsensusStatePath, 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 ClientConsensusStatePath
impl Clone for ClientConsensusStatePath
source§fn clone(&self) -> ClientConsensusStatePath
fn clone(&self) -> ClientConsensusStatePath
Returns a copy of the value. Read more
1.6.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 ClientConsensusStatePath
impl Debug for ClientConsensusStatePath
source§impl Decode for ClientConsensusStatePath
impl Decode for ClientConsensusStatePath
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ClientConsensusStatePath, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ClientConsensusStatePath, 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 ClientConsensusStatePath
impl<'de> Deserialize<'de> for ClientConsensusStatePath
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientConsensusStatePath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientConsensusStatePath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ClientConsensusStatePath
impl Display for ClientConsensusStatePath
source§impl Encode for ClientConsensusStatePath
impl Encode for ClientConsensusStatePath
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<ClientConsensusStatePath> for Path
impl From<ClientConsensusStatePath> for Path
source§fn from(original: ClientConsensusStatePath) -> Path
fn from(original: ClientConsensusStatePath) -> Path
Converts to this type from the input type.
source§impl Hash for ClientConsensusStatePath
impl Hash for ClientConsensusStatePath
source§impl Ord for ClientConsensusStatePath
impl Ord for ClientConsensusStatePath
source§fn cmp(&self, other: &ClientConsensusStatePath) -> Ordering
fn cmp(&self, other: &ClientConsensusStatePath) -> 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 ClientConsensusStatePath
impl PartialEq for ClientConsensusStatePath
source§impl PartialOrd for ClientConsensusStatePath
impl PartialOrd for ClientConsensusStatePath
source§impl Serialize for ClientConsensusStatePath
impl Serialize for ClientConsensusStatePath
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 ClientConsensusStatePath
impl TypeInfo for ClientConsensusStatePath
impl EncodeLike for ClientConsensusStatePath
impl Eq for ClientConsensusStatePath
impl StructuralPartialEq for ClientConsensusStatePath
Auto Trait Implementations§
impl Freeze for ClientConsensusStatePath
impl RefUnwindSafe for ClientConsensusStatePath
impl Send for ClientConsensusStatePath
impl Sync for ClientConsensusStatePath
impl Unpin for ClientConsensusStatePath
impl UnwindSafe for ClientConsensusStatePath
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)