pub enum JsonrpcBatchResponseItem {
Response(JsonrpcResponse),
Error(JsonrpcError),
}
Expand description
JsonrpcBatchResponseItem
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/JSONRPCResponse"
},
{
"$ref": "#/definitions/JSONRPCError"
}
]
}
Variants§
Response(JsonrpcResponse)
Error(JsonrpcError)
Trait Implementations§
Source§impl Clone for JsonrpcBatchResponseItem
impl Clone for JsonrpcBatchResponseItem
Source§fn clone(&self) -> JsonrpcBatchResponseItem
fn clone(&self) -> JsonrpcBatchResponseItem
Returns a copy 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 Debug for JsonrpcBatchResponseItem
impl Debug for JsonrpcBatchResponseItem
Source§impl<'de> Deserialize<'de> for JsonrpcBatchResponseItem
impl<'de> Deserialize<'de> for JsonrpcBatchResponseItem
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<JsonrpcError> for JsonrpcBatchResponseItem
impl From<JsonrpcError> for JsonrpcBatchResponseItem
Source§fn from(value: JsonrpcError) -> Self
fn from(value: JsonrpcError) -> Self
Converts to this type from the input type.
Source§impl From<JsonrpcResponse> for JsonrpcBatchResponseItem
impl From<JsonrpcResponse> for JsonrpcBatchResponseItem
Source§fn from(value: JsonrpcResponse) -> Self
fn from(value: JsonrpcResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonrpcBatchResponseItem
impl RefUnwindSafe for JsonrpcBatchResponseItem
impl Send for JsonrpcBatchResponseItem
impl Sync for JsonrpcBatchResponseItem
impl Unpin for JsonrpcBatchResponseItem
impl UnwindSafe for JsonrpcBatchResponseItem
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