Struct workspaces::types::ChunkHeader
source · #[non_exhaustive]pub struct ChunkHeader {Show 14 fields
pub chunk_hash: CryptoHash,
pub prev_block_hash: CryptoHash,
pub height_created: BlockHeight,
pub height_included: BlockHeight,
pub shard_id: ShardId,
pub gas_used: Gas,
pub gas_limit: Gas,
pub balance_burnt: Balance,
pub tx_root: CryptoHash,
pub outcome_root: CryptoHash,
pub prev_state_root: CryptoHash,
pub outgoing_receipts_root: CryptoHash,
pub encoded_merkle_root: CryptoHash,
pub encoded_length: u64,
}
Expand description
The header belonging to a Chunk
. This is a non-exhaustive list of
members belonging to a Chunk, where newer fields can be added in the future.
NOTE: validator_proposals have been omitted for now. If you need it, submit a ticket to: https://github.com/near/workspaces-rs/issues
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.chunk_hash: CryptoHash
§prev_block_hash: CryptoHash
§height_created: BlockHeight
§height_included: BlockHeight
§shard_id: ShardId
§gas_used: Gas
§gas_limit: Gas
§balance_burnt: Balance
§tx_root: CryptoHash
§outcome_root: CryptoHash
§prev_state_root: CryptoHash
§outgoing_receipts_root: CryptoHash
§encoded_merkle_root: CryptoHash
§encoded_length: u64
Trait Implementations§
source§impl Clone for ChunkHeader
impl Clone for ChunkHeader
source§fn clone(&self) -> ChunkHeader
fn clone(&self) -> ChunkHeader
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 ChunkHeader
impl Debug for ChunkHeader
source§impl PartialEq<ChunkHeader> for ChunkHeader
impl PartialEq<ChunkHeader> for ChunkHeader
source§fn eq(&self, other: &ChunkHeader) -> bool
fn eq(&self, other: &ChunkHeader) -> bool
impl Eq for ChunkHeader
impl StructuralEq for ChunkHeader
impl StructuralPartialEq for ChunkHeader
Auto Trait Implementations§
impl RefUnwindSafe for ChunkHeader
impl Send for ChunkHeader
impl Sync for ChunkHeader
impl Unpin for ChunkHeader
impl UnwindSafe for ChunkHeader
Blanket Implementations§
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.