pub enum JsonRpcResponseForRpcValidatorResponseAndRpcError {
Variant0 {
id: String,
jsonrpc: String,
result: RpcValidatorResponse,
},
Variant1 {
error: RpcError,
id: String,
jsonrpc: String,
},
}Expand description
JsonRpcResponseForRpcValidatorResponseAndRpcError
JSON schema
{
"title": "JsonRpcResponse_for_RpcValidatorResponse_and_RpcError",
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"$ref": "#/components/schemas/RpcValidatorResponse"
}
}
},
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"$ref": "#/components/schemas/RpcError"
}
}
}
],
"required": [
"id",
"jsonrpc"
],
"properties": {
"id": {
"type": "string"
},
"jsonrpc": {
"type": "string"
}
}
}Variants§
Trait Implementations§
Source§impl Clone for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl Clone for JsonRpcResponseForRpcValidatorResponseAndRpcError
Source§fn clone(&self) -> JsonRpcResponseForRpcValidatorResponseAndRpcError
fn clone(&self) -> JsonRpcResponseForRpcValidatorResponseAndRpcError
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<'de> Deserialize<'de> for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl<'de> Deserialize<'de> for JsonRpcResponseForRpcValidatorResponseAndRpcError
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<&JsonRpcResponseForRpcValidatorResponseAndRpcError> for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl From<&JsonRpcResponseForRpcValidatorResponseAndRpcError> for JsonRpcResponseForRpcValidatorResponseAndRpcError
Source§fn from(value: &JsonRpcResponseForRpcValidatorResponseAndRpcError) -> Self
fn from(value: &JsonRpcResponseForRpcValidatorResponseAndRpcError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl RefUnwindSafe for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl Send for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl Sync for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl Unpin for JsonRpcResponseForRpcValidatorResponseAndRpcError
impl UnwindSafe for JsonRpcResponseForRpcValidatorResponseAndRpcError
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