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§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 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<RpcValidatorRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcValidatorRequest, <__D as Deserializer<'de>>::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) -> RpcValidatorRequest
fn from(value: &RpcValidatorRequest) -> RpcValidatorRequest
Converts to this type from the input type.
Source§impl From<BlockId> for RpcValidatorRequest
impl From<BlockId> for RpcValidatorRequest
Source§fn from(value: BlockId) -> RpcValidatorRequest
fn from(value: BlockId) -> RpcValidatorRequest
Converts to this type from the input type.
Source§impl From<EpochId> for RpcValidatorRequest
impl From<EpochId> for RpcValidatorRequest
Source§fn from(value: EpochId) -> RpcValidatorRequest
fn from(value: EpochId) -> RpcValidatorRequest
Converts to this type from the input type.
Source§impl Serialize for RpcValidatorRequest
impl Serialize for RpcValidatorRequest
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 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