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