pub struct JSONRPCNotification<P = Value> {
pub jsonrpc: String,
pub method: String,
pub params: Option<P>,
}Expand description
A JSON-RPC notification (no response expected).
Fields§
§jsonrpc: StringMust be “2.0”
method: StringMethod name
params: Option<P>Optional parameters
Implementations§
Trait Implementations§
Source§impl<P: Clone> Clone for JSONRPCNotification<P>
impl<P: Clone> Clone for JSONRPCNotification<P>
Source§impl<P: Debug> Debug for JSONRPCNotification<P>
impl<P: Debug> Debug for JSONRPCNotification<P>
Source§impl<'de, P> Deserialize<'de> for JSONRPCNotification<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for JSONRPCNotification<P>where
P: Deserialize<'de>,
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
Auto Trait Implementations§
impl<P> Freeze for JSONRPCNotification<P>
impl<P> RefUnwindSafe for JSONRPCNotification<P>where
Option<P>: RefUnwindSafe,
impl<P> Send for JSONRPCNotification<P>
impl<P> Sync for JSONRPCNotification<P>
impl<P> Unpin for JSONRPCNotification<P>
impl<P> UnsafeUnpin for JSONRPCNotification<P>where
Option<P>: UnsafeUnpin,
impl<P> UnwindSafe for JSONRPCNotification<P>where
Option<P>: UnwindSafe,
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