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