Struct clarity_repl::codec::StacksBlockHeader
source · pub struct StacksBlockHeader {
pub version: u8,
pub total_work: StacksWorkScore,
pub proof: String,
pub parent_block: BlockHeaderHash,
pub parent_microblock: BlockHeaderHash,
pub parent_microblock_sequence: u16,
pub tx_merkle_root: Sha512Trunc256Sum,
pub state_index_root: TrieHash,
pub microblock_pubkey_hash: Hash160,
}Expand description
The header for an on-chain-anchored Stacks block
Fields§
§version: u8§total_work: StacksWorkScore§proof: String§parent_block: BlockHeaderHash§parent_microblock: BlockHeaderHash§parent_microblock_sequence: u16§tx_merkle_root: Sha512Trunc256Sum§state_index_root: TrieHash§microblock_pubkey_hash: Hash160Trait Implementations§
source§impl Clone for StacksBlockHeader
impl Clone for StacksBlockHeader
source§fn clone(&self) -> StacksBlockHeader
fn clone(&self) -> StacksBlockHeader
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 StacksBlockHeader
impl Debug for StacksBlockHeader
source§impl<'de> Deserialize<'de> for StacksBlockHeader
impl<'de> Deserialize<'de> for StacksBlockHeader
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 Hash for StacksBlockHeader
impl Hash for StacksBlockHeader
source§impl PartialEq for StacksBlockHeader
impl PartialEq for StacksBlockHeader
source§fn eq(&self, other: &StacksBlockHeader) -> bool
fn eq(&self, other: &StacksBlockHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StacksBlockHeader
impl Serialize for StacksBlockHeader
impl Eq for StacksBlockHeader
impl StructuralEq for StacksBlockHeader
impl StructuralPartialEq for StacksBlockHeader
Auto Trait Implementations§
impl RefUnwindSafe for StacksBlockHeader
impl Send for StacksBlockHeader
impl Sync for StacksBlockHeader
impl Unpin for StacksBlockHeader
impl UnwindSafe for StacksBlockHeader
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.