pub struct RpcBlockResponse {
pub author: AccountId,
pub chunks: Vec<ChunkHeaderView>,
pub header: BlockHeaderView,
}Expand description
RpcBlockResponse
JSON schema
{
"type": "object",
"required": [
"author",
"chunks",
"header"
],
"properties": {
"author": {
"$ref": "#/components/schemas/AccountId"
},
"chunks": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChunkHeaderView"
}
},
"header": {
"$ref": "#/components/schemas/BlockHeaderView"
}
}
}Fields§
§chunks: Vec<ChunkHeaderView>§header: BlockHeaderViewTrait Implementations§
Source§impl Clone for RpcBlockResponse
impl Clone for RpcBlockResponse
Source§fn clone(&self) -> RpcBlockResponse
fn clone(&self) -> RpcBlockResponse
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 RpcBlockResponse
impl Debug for RpcBlockResponse
Source§impl<'de> Deserialize<'de> for RpcBlockResponse
impl<'de> Deserialize<'de> for RpcBlockResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcBlockResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcBlockResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RpcBlockResponse> for RpcBlockResponse
impl From<&RpcBlockResponse> for RpcBlockResponse
Source§fn from(value: &RpcBlockResponse) -> RpcBlockResponse
fn from(value: &RpcBlockResponse) -> RpcBlockResponse
Converts to this type from the input type.
Source§impl Serialize for RpcBlockResponse
impl Serialize for RpcBlockResponse
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 RpcBlockResponse
impl RefUnwindSafe for RpcBlockResponse
impl Send for RpcBlockResponse
impl Sync for RpcBlockResponse
impl Unpin for RpcBlockResponse
impl UnwindSafe for RpcBlockResponse
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