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
RpcLightClientNextBlockResponse
JSON schema
{
"type": "object",
"properties": {
"approvals_after_next": {
"type": "array",
"items": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/Signature"
}
]
}
]
}
},
"inner_lite": {
"$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_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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RpcLightClientNextBlockResponse
impl Default for RpcLightClientNextBlockResponse
Source§fn default() -> RpcLightClientNextBlockResponse
fn default() -> RpcLightClientNextBlockResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RpcLightClientNextBlockResponse
impl<'de> Deserialize<'de> for RpcLightClientNextBlockResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcLightClientNextBlockResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcLightClientNextBlockResponse, <__D as Deserializer<'de>>::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,
) -> RpcLightClientNextBlockResponse
fn from( value: &RpcLightClientNextBlockResponse, ) -> RpcLightClientNextBlockResponse
Converts to this type from the input type.
Source§impl Serialize for RpcLightClientNextBlockResponse
impl Serialize for RpcLightClientNextBlockResponse
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 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