pub struct CandidBlockHeader {
pub version: u8,
pub timestamp: TimeInNs,
pub height: BlockHeight,
pub pre_block_hash: BlockHash,
pub tx_root: [u8; 32],
pub balance_changed_root: [u8; 32],
pub p_id: PackageId,
}
Fields§
§version: u8
§timestamp: TimeInNs
§height: BlockHeight
§pre_block_hash: BlockHash
§tx_root: [u8; 32]
§balance_changed_root: [u8; 32]
§p_id: PackageId
Trait Implementations§
source§impl CandidType for CandidBlockHeader
impl CandidType for CandidBlockHeader
source§impl Clone for CandidBlockHeader
impl Clone for CandidBlockHeader
source§fn clone(&self) -> CandidBlockHeader
fn clone(&self) -> CandidBlockHeader
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 CandidBlockHeader
impl Debug for CandidBlockHeader
source§impl<'de> Deserialize<'de> for CandidBlockHeader
impl<'de> Deserialize<'de> for CandidBlockHeader
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<BlockHeader> for CandidBlockHeader
impl From<BlockHeader> for CandidBlockHeader
source§fn from(block_header: BlockHeader) -> Self
fn from(block_header: BlockHeader) -> Self
Converts to this type from the input type.
source§impl From<CandidBlockHeader> for BlockHeader
impl From<CandidBlockHeader> for BlockHeader
source§fn from(candid_block_header: CandidBlockHeader) -> Self
fn from(candid_block_header: CandidBlockHeader) -> Self
Converts to this type from the input type.
source§impl Ord for CandidBlockHeader
impl Ord for CandidBlockHeader
source§fn cmp(&self, other: &CandidBlockHeader) -> Ordering
fn cmp(&self, other: &CandidBlockHeader) -> 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<CandidBlockHeader> for CandidBlockHeader
impl PartialEq<CandidBlockHeader> for CandidBlockHeader
source§fn eq(&self, other: &CandidBlockHeader) -> bool
fn eq(&self, other: &CandidBlockHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CandidBlockHeader> for CandidBlockHeader
impl PartialOrd<CandidBlockHeader> for CandidBlockHeader
source§fn partial_cmp(&self, other: &CandidBlockHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &CandidBlockHeader) -> 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 more