Struct ex3_node_types::block::ConsensusBlockHead
source · pub struct ConsensusBlockHead {
pub head: BlockHead,
pub timestamp: TimeInNs,
}Expand description
Block head
Fields§
§head: BlockHeadHead
timestamp: TimeInNsTimestamp of reached consensus
Trait Implementations§
source§impl Clone for ConsensusBlockHead
impl Clone for ConsensusBlockHead
source§fn clone(&self) -> ConsensusBlockHead
fn clone(&self) -> ConsensusBlockHead
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 ConsensusBlockHead
impl Debug for ConsensusBlockHead
source§impl<'de> Deserialize<'de> for ConsensusBlockHead
impl<'de> Deserialize<'de> for ConsensusBlockHead
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 ConsensusBlockHead
impl Ord for ConsensusBlockHead
source§fn cmp(&self, other: &ConsensusBlockHead) -> Ordering
fn cmp(&self, other: &ConsensusBlockHead) -> 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 ConsensusBlockHead
impl PartialEq for ConsensusBlockHead
source§fn eq(&self, other: &ConsensusBlockHead) -> bool
fn eq(&self, other: &ConsensusBlockHead) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ConsensusBlockHead
impl PartialOrd for ConsensusBlockHead
source§fn partial_cmp(&self, other: &ConsensusBlockHead) -> Option<Ordering>
fn partial_cmp(&self, other: &ConsensusBlockHead) -> 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 ConsensusBlockHead
impl Serialize for ConsensusBlockHead
impl Eq for ConsensusBlockHead
impl StructuralEq for ConsensusBlockHead
impl StructuralPartialEq for ConsensusBlockHead
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusBlockHead
impl Send for ConsensusBlockHead
impl Sync for ConsensusBlockHead
impl Unpin for ConsensusBlockHead
impl UnwindSafe for ConsensusBlockHead
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