pub struct ChunkHeaderView {Show 20 fields
pub balance_burnt: String,
pub bandwidth_requests: Option<BandwidthRequests>,
pub chunk_hash: CryptoHash,
pub congestion_info: Option<CongestionInfoView>,
pub encoded_length: u64,
pub encoded_merkle_root: CryptoHash,
pub gas_limit: u64,
pub gas_used: u64,
pub height_created: u64,
pub height_included: u64,
pub outcome_root: CryptoHash,
pub outgoing_receipts_root: CryptoHash,
pub prev_block_hash: CryptoHash,
pub prev_state_root: CryptoHash,
pub rent_paid: String,
pub shard_id: ShardId,
pub signature: Signature,
pub tx_root: CryptoHash,
pub validator_proposals: Vec<ValidatorStakeView>,
pub validator_reward: String,
}Expand description
ChunkHeaderView
JSON schema
{
"type": "object",
"required": [
"balance_burnt",
"chunk_hash",
"encoded_length",
"encoded_merkle_root",
"gas_limit",
"gas_used",
"height_created",
"height_included",
"outcome_root",
"outgoing_receipts_root",
"prev_block_hash",
"prev_state_root",
"rent_paid",
"shard_id",
"signature",
"tx_root",
"validator_proposals",
"validator_reward"
],
"properties": {
"balance_burnt": {
"type": "string"
},
"bandwidth_requests": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BandwidthRequests"
}
]
}
]
},
"chunk_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"congestion_info": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CongestionInfoView"
}
]
}
]
},
"encoded_length": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"encoded_merkle_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"gas_limit": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"gas_used": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"height_created": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"height_included": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"outcome_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"outgoing_receipts_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"prev_block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"prev_state_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"rent_paid": {
"description": "TODO(2271): deprecated.",
"type": "string"
},
"shard_id": {
"$ref": "#/components/schemas/ShardId"
},
"signature": {
"$ref": "#/components/schemas/Signature"
},
"tx_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"validator_proposals": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatorStakeView"
}
},
"validator_reward": {
"description": "TODO(2271): deprecated.",
"type": "string"
}
}
}Fields§
§balance_burnt: String§bandwidth_requests: Option<BandwidthRequests>§chunk_hash: CryptoHash§congestion_info: Option<CongestionInfoView>§encoded_length: u64§encoded_merkle_root: CryptoHash§gas_limit: u64§gas_used: u64§height_created: u64§height_included: u64§outcome_root: CryptoHash§outgoing_receipts_root: CryptoHash§prev_block_hash: CryptoHash§prev_state_root: CryptoHash§rent_paid: StringTODO(2271): deprecated.
shard_id: ShardId§signature: Signature§tx_root: CryptoHash§validator_proposals: Vec<ValidatorStakeView>§validator_reward: StringTODO(2271): deprecated.
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§const fn clone_from(&mut self, source: &Self)
const 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<ChunkHeaderView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChunkHeaderView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ChunkHeaderView> for ChunkHeaderView
impl From<&ChunkHeaderView> for ChunkHeaderView
Source§fn from(value: &ChunkHeaderView) -> ChunkHeaderView
fn from(value: &ChunkHeaderView) -> ChunkHeaderView
Converts to this type from the input type.
Source§impl Serialize for ChunkHeaderView
impl Serialize for ChunkHeaderView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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