pub struct ServerJsonrpcNotification {
pub jsonrpc: String,
pub method: String,
pub notification: NotificationFromServer,
}Expand description
“Similar to JsonrpcNotification , but with the variants restricted to server-side notifications.”
Fields§
§jsonrpc: String§method: String§notification: NotificationFromServerImplementations§
Source§impl ServerJsonrpcNotification
impl ServerJsonrpcNotification
pub fn new(notification: NotificationFromServer) -> Self
Trait Implementations§
Source§impl Clone for ServerJsonrpcNotification
impl Clone for ServerJsonrpcNotification
Source§fn clone(&self) -> ServerJsonrpcNotification
fn clone(&self) -> ServerJsonrpcNotification
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 ServerJsonrpcNotification
impl Debug for ServerJsonrpcNotification
Source§impl<'de> Deserialize<'de> for ServerJsonrpcNotification
impl<'de> Deserialize<'de> for ServerJsonrpcNotification
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
Auto Trait Implementations§
impl Freeze for ServerJsonrpcNotification
impl RefUnwindSafe for ServerJsonrpcNotification
impl Send for ServerJsonrpcNotification
impl Sync for ServerJsonrpcNotification
impl Unpin for ServerJsonrpcNotification
impl UnwindSafe for ServerJsonrpcNotification
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