pub struct Notification {
pub method: String,
pub params: Option<NotificationParams>,
}
Expand description
Base notification with metadata support
Fieldsยง
ยงmethod: String
Method name
params: Option<NotificationParams>
Parameters with metadata support
Trait Implementationsยง
Sourceยงimpl Clone for Notification
impl Clone for Notification
Sourceยงfn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate 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 PartialEq for Notification
impl PartialEq for Notification
Sourceยงimpl Serialize for Notification
impl Serialize for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementationsยง
impl Freeze for Notification
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