pub struct NotificationSer<'a> {
pub jsonrpc: TwoPointZero,
pub method: Cow<'a, str>,
pub params: Option<Cow<'a, RawValue>>,
}
Expand description
Serializable JSON-RPC notification object.
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
method: Cow<'a, str>
Name of the method to be invoked.
params: Option<Cow<'a, RawValue>>
Parameter values of the request.
Implementations§
source§impl<'a> NotificationSer<'a>
impl<'a> NotificationSer<'a>
Trait Implementations§
source§impl<'a> Clone for NotificationSer<'a>
impl<'a> Clone for NotificationSer<'a>
source§fn clone(&self) -> NotificationSer<'a>
fn clone(&self) -> NotificationSer<'a>
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<'a> Debug for NotificationSer<'a>
impl<'a> Debug for NotificationSer<'a>
Auto Trait Implementations§
impl<'a> Freeze for NotificationSer<'a>
impl<'a> RefUnwindSafe for NotificationSer<'a>
impl<'a> Send for NotificationSer<'a>
impl<'a> Sync for NotificationSer<'a>
impl<'a> Unpin for NotificationSer<'a>
impl<'a> UnwindSafe for NotificationSer<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)