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