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