pub struct ChunkHeaderView {Show 21 fields
pub chunk_hash: CryptoHash,
pub prev_block_hash: CryptoHash,
pub outcome_root: CryptoHash,
pub prev_state_root: CryptoHash,
pub encoded_merkle_root: CryptoHash,
pub encoded_length: u64,
pub height_created: u64,
pub height_included: u64,
pub shard_id: u64,
pub gas_used: u64,
pub gas_limit: u64,
pub validator_reward: NearToken,
pub balance_burnt: NearToken,
pub outgoing_receipts_root: CryptoHash,
pub tx_root: CryptoHash,
pub validator_proposals: Vec<ValidatorStakeView>,
pub congestion_info: Option<CongestionInfoView>,
pub bandwidth_requests: Option<BandwidthRequests>,
pub rent_paid: Option<NearToken>,
pub proposed_split: Option<Option<TrieSplit>>,
pub signature: Signature,
}Expand description
Chunk header with full details.
Fields§
§chunk_hash: CryptoHashChunk hash.
prev_block_hash: CryptoHashPrevious block hash.
outcome_root: CryptoHashOutcome root.
prev_state_root: CryptoHashPrevious state root.
encoded_merkle_root: CryptoHashEncoded merkle root.
encoded_length: u64Encoded length.
height_created: u64Height when chunk was created.
height_included: u64Height when chunk was included.
shard_id: u64Shard ID.
gas_used: u64Gas used in this chunk.
gas_limit: u64Gas limit for this chunk.
validator_reward: NearTokenValidator reward.
balance_burnt: NearTokenBalance burnt.
outgoing_receipts_root: CryptoHashOutgoing receipts root.
tx_root: CryptoHashTransaction root.
validator_proposals: Vec<ValidatorStakeView>Validator proposals.
congestion_info: Option<CongestionInfoView>Congestion info (optional, added in later protocol versions).
bandwidth_requests: Option<BandwidthRequests>Bandwidth requests (optional, added in later protocol versions).
rent_paid: Option<NearToken>Rent paid (deprecated; when present, always 0).
proposed_split: Option<Option<TrieSplit>>Proposed trie split for resharding.
None— field absent (older protocol versions)Some(None)— field present as JSONnull(no split proposed)Some(Some(split))— active split proposal
signature: SignatureChunk signature.
Trait Implementations§
Source§impl Clone for ChunkHeaderView
impl Clone for ChunkHeaderView
Source§fn clone(&self) -> ChunkHeaderView
fn clone(&self) -> ChunkHeaderView
Returns a duplicate 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 ChunkHeaderView
impl Debug for ChunkHeaderView
Source§impl<'de> Deserialize<'de> for ChunkHeaderView
impl<'de> Deserialize<'de> for ChunkHeaderView
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
Auto Trait Implementations§
impl Freeze for ChunkHeaderView
impl RefUnwindSafe for ChunkHeaderView
impl Send for ChunkHeaderView
impl Sync for ChunkHeaderView
impl Unpin for ChunkHeaderView
impl UnsafeUnpin for ChunkHeaderView
impl UnwindSafe for ChunkHeaderView
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