pub struct BlockHeaderView {Show 34 fields
pub height: BlockHeight,
pub prev_height: Option<BlockHeight>,
pub epoch_id: CryptoHash,
pub next_epoch_id: CryptoHash,
pub hash: CryptoHash,
pub prev_hash: CryptoHash,
pub prev_state_root: CryptoHash,
pub block_body_hash: Option<CryptoHash>,
pub chunk_receipts_root: CryptoHash,
pub chunk_headers_root: CryptoHash,
pub chunk_tx_root: CryptoHash,
pub outcome_root: CryptoHash,
pub chunks_included: u64,
pub challenges_root: CryptoHash,
pub timestamp: u64,
pub timestamp_nanosec: u64,
pub random_value: CryptoHash,
pub validator_power_proposals: Vec<ValidatorPowerView>,
pub validator_pledge_proposals: Vec<ValidatorPledgeView>,
pub chunk_mask: Vec<bool>,
pub gas_price: Balance,
pub block_ordinal: Option<NumBlocks>,
pub rent_paid: Balance,
pub validator_reward: Balance,
pub total_supply: Balance,
pub challenges_result: ChallengesResult,
pub last_final_block: CryptoHash,
pub last_ds_final_block: CryptoHash,
pub next_bp_hash: CryptoHash,
pub block_merkle_root: CryptoHash,
pub epoch_sync_data_hash: Option<CryptoHash>,
pub approvals: Vec<Option<Box<Signature>>>,
pub signature: Signature,
pub latest_protocol_version: ProtocolVersion,
}Fields§
§height: BlockHeight§prev_height: Option<BlockHeight>§epoch_id: CryptoHash§next_epoch_id: CryptoHash§hash: CryptoHash§prev_hash: CryptoHash§prev_state_root: CryptoHash§block_body_hash: Option<CryptoHash>§chunk_receipts_root: CryptoHash§chunk_headers_root: CryptoHash§chunk_tx_root: CryptoHash§outcome_root: CryptoHash§chunks_included: u64§challenges_root: CryptoHash§timestamp: u64Legacy json number. Should not be used.
timestamp_nanosec: u64§random_value: CryptoHash§validator_power_proposals: Vec<ValidatorPowerView>§validator_pledge_proposals: Vec<ValidatorPledgeView>§chunk_mask: Vec<bool>§gas_price: Balance§block_ordinal: Option<NumBlocks>§rent_paid: BalanceTODO(2271): deprecated.
validator_reward: BalanceTODO(2271): deprecated.
total_supply: Balance§challenges_result: ChallengesResult§last_final_block: CryptoHash§last_ds_final_block: CryptoHash§next_bp_hash: CryptoHash§block_merkle_root: CryptoHash§epoch_sync_data_hash: Option<CryptoHash>§approvals: Vec<Option<Box<Signature>>>§signature: Signature§latest_protocol_version: ProtocolVersionTrait Implementations§
Source§impl Clone for BlockHeaderView
impl Clone for BlockHeaderView
Source§fn clone(&self) -> BlockHeaderView
fn clone(&self) -> BlockHeaderView
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 BlockHeaderView
impl Debug for BlockHeaderView
Source§impl<'de> Deserialize<'de> for BlockHeaderView
impl<'de> Deserialize<'de> for BlockHeaderView
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<BlockHeader> for BlockHeaderView
impl From<BlockHeader> for BlockHeaderView
Source§fn from(header: BlockHeader) -> Self
fn from(header: BlockHeader) -> Self
Converts to this type from the input type.
Source§impl From<BlockHeaderView> for BlockHeader
impl From<BlockHeaderView> for BlockHeader
Source§fn from(view: BlockHeaderView) -> Self
fn from(view: BlockHeaderView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockHeaderView
impl RefUnwindSafe for BlockHeaderView
impl Send for BlockHeaderView
impl Sync for BlockHeaderView
impl Unpin for BlockHeaderView
impl UnwindSafe for BlockHeaderView
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more