pub enum RpcChunkRequest {
BlockShardId {
block_id: BlockId,
shard_id: ShardId,
},
ChunkHash {
chunk_id: CryptoHash,
},
}
Expand description
RpcChunkRequest
JSON schema
{
"title": "RpcChunkRequest",
"type": "object",
"anyOf": [
{
"title": "block_shard_id",
"type": "object",
"required": [
"block_id",
"shard_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
},
"shard_id": {
"$ref": "#/components/schemas/ShardId"
}
}
},
{
"title": "chunk_hash",
"type": "object",
"required": [
"chunk_id"
],
"properties": {
"chunk_id": {
"$ref": "#/components/schemas/CryptoHash"
}
}
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for RpcChunkRequest
impl Clone for RpcChunkRequest
Source§fn clone(&self) -> RpcChunkRequest
fn clone(&self) -> RpcChunkRequest
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 RpcChunkRequest
impl Debug for RpcChunkRequest
Source§impl<'de> Deserialize<'de> for RpcChunkRequest
impl<'de> Deserialize<'de> for RpcChunkRequest
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<&RpcChunkRequest> for RpcChunkRequest
impl From<&RpcChunkRequest> for RpcChunkRequest
Source§fn from(value: &RpcChunkRequest) -> Self
fn from(value: &RpcChunkRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcChunkRequest
impl RefUnwindSafe for RpcChunkRequest
impl Send for RpcChunkRequest
impl Sync for RpcChunkRequest
impl Unpin for RpcChunkRequest
impl UnwindSafe for RpcChunkRequest
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