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