pub struct JsonRpcNotification {
pub jsonrpc: JsonRpcVersion,
pub method: String,
pub params: Option<Map<String, Value>>,
}Expand description
A notification which does not expect a response.
Fields§
§jsonrpc: JsonRpcVersion§method: String§params: Option<Map<String, Value>>Implementations§
Source§impl JsonRpcNotification
impl JsonRpcNotification
Sourcepub fn new(method: String) -> JsonRpcNotification
pub fn new(method: String) -> JsonRpcNotification
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for JsonRpcNotification
impl Clone for JsonRpcNotification
Source§fn clone(&self) -> JsonRpcNotification
fn clone(&self) -> JsonRpcNotification
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 Debug for JsonRpcNotification
impl Debug for JsonRpcNotification
Source§impl<'de> Deserialize<'de> for JsonRpcNotification
impl<'de> Deserialize<'de> for JsonRpcNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<JsonRpcNotification> for JsonRpcMessage
impl From<JsonRpcNotification> for JsonRpcMessage
Source§fn from(v: JsonRpcNotification) -> JsonRpcMessage
fn from(v: JsonRpcNotification) -> JsonRpcMessage
Converts to this type from the input type.
Source§impl PartialEq for JsonRpcNotification
impl PartialEq for JsonRpcNotification
Source§impl Serialize for JsonRpcNotification
impl Serialize for JsonRpcNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for JsonRpcNotification
Auto Trait Implementations§
impl Freeze for JsonRpcNotification
impl RefUnwindSafe for JsonRpcNotification
impl Send for JsonRpcNotification
impl Sync for JsonRpcNotification
impl Unpin for JsonRpcNotification
impl UnsafeUnpin for JsonRpcNotification
impl UnwindSafe for JsonRpcNotification
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