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