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