Struct ex3_node_types::block::CandidConsensusBlockHead
source · pub struct CandidConsensusBlockHead {
pub head: CandidBlockHead,
pub timestamp: TimeInNs,
}Fields§
§head: CandidBlockHead§timestamp: TimeInNsTrait Implementations§
source§impl Clone for CandidConsensusBlockHead
impl Clone for CandidConsensusBlockHead
source§fn clone(&self) -> CandidConsensusBlockHead
fn clone(&self) -> CandidConsensusBlockHead
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 CandidConsensusBlockHead
impl Debug for CandidConsensusBlockHead
source§impl<'de> Deserialize<'de> for CandidConsensusBlockHead
impl<'de> Deserialize<'de> for CandidConsensusBlockHead
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 From<CandidConsensusBlockHead> for ConsensusBlockHead
impl From<CandidConsensusBlockHead> for ConsensusBlockHead
source§fn from(candid_consensus_block_head: CandidConsensusBlockHead) -> Self
fn from(candid_consensus_block_head: CandidConsensusBlockHead) -> Self
Converts to this type from the input type.
source§impl From<ConsensusBlockHead> for CandidConsensusBlockHead
impl From<ConsensusBlockHead> for CandidConsensusBlockHead
source§fn from(consensus_block_head: ConsensusBlockHead) -> Self
fn from(consensus_block_head: ConsensusBlockHead) -> Self
Converts to this type from the input type.
source§impl Ord for CandidConsensusBlockHead
impl Ord for CandidConsensusBlockHead
source§fn cmp(&self, other: &CandidConsensusBlockHead) -> Ordering
fn cmp(&self, other: &CandidConsensusBlockHead) -> 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 CandidConsensusBlockHead
impl PartialEq for CandidConsensusBlockHead
source§fn eq(&self, other: &CandidConsensusBlockHead) -> bool
fn eq(&self, other: &CandidConsensusBlockHead) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CandidConsensusBlockHead
impl PartialOrd for CandidConsensusBlockHead
source§fn partial_cmp(&self, other: &CandidConsensusBlockHead) -> Option<Ordering>
fn partial_cmp(&self, other: &CandidConsensusBlockHead) -> 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 moreimpl Eq for CandidConsensusBlockHead
impl StructuralEq for CandidConsensusBlockHead
impl StructuralPartialEq for CandidConsensusBlockHead
Auto Trait Implementations§
impl RefUnwindSafe for CandidConsensusBlockHead
impl Send for CandidConsensusBlockHead
impl Sync for CandidConsensusBlockHead
impl Unpin for CandidConsensusBlockHead
impl UnwindSafe for CandidConsensusBlockHead
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