Struct jsonrpc_core::types::request::Notification
source · pub struct Notification {
pub jsonrpc: Option<Version>,
pub method: String,
pub params: Params,
}
Expand description
Represents jsonrpc request which is a notification.
Fields§
§jsonrpc: Option<Version>
A String specifying the version of the JSON-RPC protocol.
method: String
A String containing the name of the method to be invoked.
params: Params
A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.
Trait Implementations§
source§impl Clone for Notification
impl Clone for Notification
source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 Notification
impl Debug for Notification
source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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<Notification> for Call
impl From<Notification> for Call
source§fn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
source§impl PartialEq<Notification> for Notification
impl PartialEq<Notification> for Notification
source§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Notification
impl Serialize for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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