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": {
"description": "The AccountId of the author of the Block",
"allOf": [
{
"$ref": "#/components/schemas/AccountId"
}
]
},
"chunks": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChunkHeaderView"
}
},
"header": {
"$ref": "#/components/schemas/BlockHeaderView"
}
}
}
Fields§
The AccountId of the author of the Block
chunks: Vec<ChunkHeaderView>
§header: BlockHeaderView
Trait 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§fn clone_from(&mut self, source: &Self)
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<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<&RpcBlockResponse> for RpcBlockResponse
impl From<&RpcBlockResponse> for RpcBlockResponse
Source§fn from(value: &RpcBlockResponse) -> Self
fn from(value: &RpcBlockResponse) -> Self
Converts to this type from the input type.
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