pub struct JsonRpcNotification<Params> {
pub jsonrpc: JsonRpcVersion,
pub method: String,
pub params: Params,
}Expand description
A JSON-RPC 2.0 notification (no id).
Fields§
§jsonrpc: JsonRpcVersionJSON-RPC version.
method: StringMethod name.
params: ParamsMethod parameters.
Trait Implementations§
Source§impl<Params: Clone> Clone for JsonRpcNotification<Params>
impl<Params: Clone> Clone for JsonRpcNotification<Params>
Source§fn clone(&self) -> JsonRpcNotification<Params>
fn clone(&self) -> JsonRpcNotification<Params>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Params: Debug> Debug for JsonRpcNotification<Params>
impl<Params: Debug> Debug for JsonRpcNotification<Params>
Source§impl<'de, Params> Deserialize<'de> for JsonRpcNotification<Params>where
Params: Deserialize<'de>,
impl<'de, Params> Deserialize<'de> for JsonRpcNotification<Params>where
Params: 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
Source§impl<Params: PartialEq> PartialEq for JsonRpcNotification<Params>
impl<Params: PartialEq> PartialEq for JsonRpcNotification<Params>
Source§fn eq(&self, other: &JsonRpcNotification<Params>) -> bool
fn eq(&self, other: &JsonRpcNotification<Params>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Params> Serialize for JsonRpcNotification<Params>where
Params: Serialize,
impl<Params> Serialize for JsonRpcNotification<Params>where
Params: Serialize,
impl<Params> StructuralPartialEq for JsonRpcNotification<Params>
Auto Trait Implementations§
impl<Params> Freeze for JsonRpcNotification<Params>where
Params: Freeze,
impl<Params> RefUnwindSafe for JsonRpcNotification<Params>where
Params: RefUnwindSafe,
impl<Params> Send for JsonRpcNotification<Params>where
Params: Send,
impl<Params> Sync for JsonRpcNotification<Params>where
Params: Sync,
impl<Params> Unpin for JsonRpcNotification<Params>where
Params: Unpin,
impl<Params> UnsafeUnpin for JsonRpcNotification<Params>where
Params: UnsafeUnpin,
impl<Params> UnwindSafe for JsonRpcNotification<Params>where
Params: 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