Struct hyperfuel_format::BlockHeader
source · pub struct BlockHeader {
pub id: Hash,
pub da_height: UInt,
pub transactions_count: Quantity,
pub message_receipt_count: Quantity,
pub transactions_root: Hash,
pub message_receipt_root: Hash,
pub height: UInt,
pub prev_root: Hash,
pub time: UInt,
pub application_hash: Hash,
}Expand description
The header contains metadata about a certain block.
Fields§
§id: HashHash of the header
da_height: UIntThe block height for the data availability layer up to which (inclusive) input messages are processed.
transactions_count: QuantityThe number of transactions in the block.
message_receipt_count: QuantityThe number of receipt messages in the block.
transactions_root: HashThe merkle root of the transactions in the block.
message_receipt_root: HashThe merkle root of the receipt messages in the block.
height: UIntThe block height.
prev_root: HashThe merkle root of all previous consensus header hashes (not including this block).
time: UIntThe timestamp for the block.
application_hash: HashThe hash of the serialized application header for this block.
Trait Implementations§
source§impl Clone for BlockHeader
impl Clone for BlockHeader
source§fn clone(&self) -> BlockHeader
fn clone(&self) -> BlockHeader
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 BlockHeader
impl Debug for BlockHeader
source§impl Default for BlockHeader
impl Default for BlockHeader
source§fn default() -> BlockHeader
fn default() -> BlockHeader
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockHeader
impl<'de> Deserialize<'de> for BlockHeader
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 PartialEq for BlockHeader
impl PartialEq for BlockHeader
source§fn eq(&self, other: &BlockHeader) -> bool
fn eq(&self, other: &BlockHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BlockHeader
impl Serialize for BlockHeader
impl Eq for BlockHeader
impl StructuralPartialEq for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
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