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