pub struct ChunkHeaderView {Show 19 fields
pub chunk_hash: CryptoHash,
pub prev_block_hash: CryptoHash,
pub outcome_root: CryptoHash,
pub prev_state_root: StateRoot,
pub encoded_merkle_root: CryptoHash,
pub encoded_length: u64,
pub height_created: BlockHeight,
pub height_included: BlockHeight,
pub shard_id: ShardId,
pub gas_used: Gas,
pub gas_limit: Gas,
pub rent_paid: Balance,
pub validator_reward: Balance,
pub balance_burnt: Balance,
pub outgoing_receipts_root: CryptoHash,
pub tx_root: CryptoHash,
pub validator_power_proposals: Vec<ValidatorPowerView>,
pub validator_pledge_proposals: Vec<ValidatorPledgeView>,
pub signature: Signature,
}Fields§
§chunk_hash: CryptoHash§prev_block_hash: CryptoHash§outcome_root: CryptoHash§prev_state_root: StateRoot§encoded_merkle_root: CryptoHash§encoded_length: u64§height_created: BlockHeight§height_included: BlockHeight§shard_id: ShardId§gas_used: Gas§gas_limit: Gas§rent_paid: BalanceTODO(2271): deprecated.
validator_reward: BalanceTODO(2271): deprecated.
balance_burnt: Balance§outgoing_receipts_root: CryptoHash§tx_root: CryptoHash§validator_power_proposals: Vec<ValidatorPowerView>§validator_pledge_proposals: Vec<ValidatorPledgeView>§signature: SignatureTrait 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
Source§impl From<ChunkHeaderView> for ShardChunkHeader
impl From<ChunkHeaderView> for ShardChunkHeader
Source§fn from(view: ChunkHeaderView) -> Self
fn from(view: ChunkHeaderView) -> Self
Converts to this type from the input type.
Source§impl From<ShardChunkHeader> for ChunkHeaderView
impl From<ShardChunkHeader> for ChunkHeaderView
Source§fn from(chunk: ShardChunkHeader) -> Self
fn from(chunk: ShardChunkHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkHeaderView
impl RefUnwindSafe for ChunkHeaderView
impl Send for ChunkHeaderView
impl Sync for ChunkHeaderView
impl Unpin for ChunkHeaderView
impl UnwindSafe for ChunkHeaderView
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