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