pub struct RpcLightClientNextBlockResponse {
pub approvals_after_next: Vec<Option<Signature>>,
pub inner_lite: Option<BlockHeaderInnerLiteView>,
pub inner_rest_hash: Option<CryptoHash>,
pub next_block_inner_hash: Option<CryptoHash>,
pub next_bps: Option<Vec<ValidatorStakeView>>,
pub prev_block_hash: Option<CryptoHash>,
}
Expand description
A state for the current head of a light client. More info here.
JSON schema
{
"description": "A state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).",
"type": "object",
"properties": {
"approvals_after_next": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/components/schemas/Signature"
},
{
"type": "null"
}
]
}
},
"inner_lite": {
"description": "Inner part of the block header that gets hashed, split into two parts, one that is sent\n to light clients, and the rest",
"allOf": [
{
"$ref": "#/components/schemas/BlockHeaderInnerLiteView"
}
]
},
"inner_rest_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"next_block_inner_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"next_bps": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ValidatorStakeView"
}
},
"prev_block_hash": {
"$ref": "#/components/schemas/CryptoHash"
}
}
}
Fields§
§approvals_after_next: Vec<Option<Signature>>
§inner_lite: Option<BlockHeaderInnerLiteView>
Inner part of the block header that gets hashed, split into two parts, one that is sent to light clients, and the rest
inner_rest_hash: Option<CryptoHash>
§next_block_inner_hash: Option<CryptoHash>
§next_bps: Option<Vec<ValidatorStakeView>>
§prev_block_hash: Option<CryptoHash>
Trait Implementations§
Source§impl Clone for RpcLightClientNextBlockResponse
impl Clone for RpcLightClientNextBlockResponse
Source§fn clone(&self) -> RpcLightClientNextBlockResponse
fn clone(&self) -> RpcLightClientNextBlockResponse
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<'de> Deserialize<'de> for RpcLightClientNextBlockResponse
impl<'de> Deserialize<'de> for RpcLightClientNextBlockResponse
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<&RpcLightClientNextBlockResponse> for RpcLightClientNextBlockResponse
impl From<&RpcLightClientNextBlockResponse> for RpcLightClientNextBlockResponse
Source§fn from(value: &RpcLightClientNextBlockResponse) -> Self
fn from(value: &RpcLightClientNextBlockResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcLightClientNextBlockResponse
impl RefUnwindSafe for RpcLightClientNextBlockResponse
impl Send for RpcLightClientNextBlockResponse
impl Sync for RpcLightClientNextBlockResponse
impl Unpin for RpcLightClientNextBlockResponse
impl UnwindSafe for RpcLightClientNextBlockResponse
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