pub enum JSONRPCBatchRequestItem {
Request(JSONRPCRequest),
Notification(JSONRPCNotification),
}
Expand description
An item in a JSON-RPC batch request
Variants§
Request(JSONRPCRequest)
A request that expects a response
Notification(JSONRPCNotification)
A notification that does not expect a response
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 PartialEq for JSONRPCBatchRequestItem
impl PartialEq for JSONRPCBatchRequestItem
Source§impl Serialize for JSONRPCBatchRequestItem
impl Serialize for JSONRPCBatchRequestItem
impl StructuralPartialEq for JSONRPCBatchRequestItem
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