pub enum RpcCongestionLevelRequest {
BlockShardId {
block_id: BlockId,
shard_id: ShardId,
},
ChunkHash {
chunk_id: CryptoHash,
},
}
Expand description
RpcCongestionLevelRequest
JSON schema
{
"title": "RpcCongestionLevelRequest",
"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 RpcCongestionLevelRequest
impl Clone for RpcCongestionLevelRequest
Source§fn clone(&self) -> RpcCongestionLevelRequest
fn clone(&self) -> RpcCongestionLevelRequest
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 RpcCongestionLevelRequest
impl Debug for RpcCongestionLevelRequest
Source§impl<'de> Deserialize<'de> for RpcCongestionLevelRequest
impl<'de> Deserialize<'de> for RpcCongestionLevelRequest
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<&RpcCongestionLevelRequest> for RpcCongestionLevelRequest
impl From<&RpcCongestionLevelRequest> for RpcCongestionLevelRequest
Source§fn from(value: &RpcCongestionLevelRequest) -> Self
fn from(value: &RpcCongestionLevelRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcCongestionLevelRequest
impl RefUnwindSafe for RpcCongestionLevelRequest
impl Send for RpcCongestionLevelRequest
impl Sync for RpcCongestionLevelRequest
impl Unpin for RpcCongestionLevelRequest
impl UnwindSafe for RpcCongestionLevelRequest
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