pub struct BlockHeaderInnerLiteView {
pub block_merkle_root: CryptoHash,
pub epoch_id: CryptoHash,
pub height: u64,
pub next_bp_hash: CryptoHash,
pub next_epoch_id: CryptoHash,
pub outcome_root: CryptoHash,
pub prev_state_root: CryptoHash,
pub timestamp: u64,
pub timestamp_nanosec: String,
}
Expand description
A part of a state for the current head of a light client. More info here.
JSON schema
{
"description": "A part of a state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).",
"type": "object",
"required": [
"block_merkle_root",
"epoch_id",
"height",
"next_bp_hash",
"next_epoch_id",
"outcome_root",
"prev_state_root",
"timestamp",
"timestamp_nanosec"
],
"properties": {
"block_merkle_root": {
"description": "The merkle root of all the block hashes",
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
},
"epoch_id": {
"description": "The epoch to which the block that is the current known head belongs",
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
},
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"next_bp_hash": {
"description": "The hash of the block producers set for the next epoch",
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
},
"next_epoch_id": {
"description": "The epoch that will follow the current epoch",
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
},
"outcome_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"prev_state_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"timestamp": {
"description": "Legacy json number. Should not be used.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"timestamp_nanosec": {
"type": "string"
}
}
}
Fields§
§block_merkle_root: CryptoHash
The merkle root of all the block hashes
epoch_id: CryptoHash
The epoch to which the block that is the current known head belongs
height: u64
§next_bp_hash: CryptoHash
The hash of the block producers set for the next epoch
next_epoch_id: CryptoHash
The epoch that will follow the current epoch
outcome_root: CryptoHash
§prev_state_root: CryptoHash
§timestamp: u64
Legacy json number. Should not be used.
timestamp_nanosec: String
Trait Implementations§
Source§impl Clone for BlockHeaderInnerLiteView
impl Clone for BlockHeaderInnerLiteView
Source§fn clone(&self) -> BlockHeaderInnerLiteView
fn clone(&self) -> BlockHeaderInnerLiteView
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 BlockHeaderInnerLiteView
impl Debug for BlockHeaderInnerLiteView
Source§impl<'de> Deserialize<'de> for BlockHeaderInnerLiteView
impl<'de> Deserialize<'de> for BlockHeaderInnerLiteView
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<&BlockHeaderInnerLiteView> for BlockHeaderInnerLiteView
impl From<&BlockHeaderInnerLiteView> for BlockHeaderInnerLiteView
Source§fn from(value: &BlockHeaderInnerLiteView) -> Self
fn from(value: &BlockHeaderInnerLiteView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockHeaderInnerLiteView
impl RefUnwindSafe for BlockHeaderInnerLiteView
impl Send for BlockHeaderInnerLiteView
impl Sync for BlockHeaderInnerLiteView
impl Unpin for BlockHeaderInnerLiteView
impl UnwindSafe for BlockHeaderInnerLiteView
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