Struct lsp_json::NotificationMessage
source · [−]pub struct NotificationMessage<T> {
pub jsonrpc: String,
pub method: String,
pub params: Option<T>,
}Expand description
A notification message. A processed notification message must not send a response back. They work like events.
Fields
jsonrpc: Stringjsonrpc version. LSP uses 2.0
method: StringThe method to be invoked.
params: Option<T>The notification’s params
Trait Implementations
sourceimpl<T: Debug> Debug for NotificationMessage<T>
impl<T: Debug> Debug for NotificationMessage<T>
sourceimpl<'de, T> Deserialize<'de> for NotificationMessage<T> where
T: Deserialize<'de>,
T: Default,
impl<'de, T> Deserialize<'de> for NotificationMessage<T> where
T: Deserialize<'de>,
T: Default,
sourcefn 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<T> RefUnwindSafe for NotificationMessage<T> where
T: RefUnwindSafe,
impl<T> Send for NotificationMessage<T> where
T: Send,
impl<T> Sync for NotificationMessage<T> where
T: Sync,
impl<T> Unpin for NotificationMessage<T> where
T: Unpin,
impl<T> UnwindSafe for NotificationMessage<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more