| 6 | /// As defined in [JSON-RPC](https://www.jsonrpc.org/specification#notification) and [LSP](https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#notificationMessage). |
| 7 | #[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)] |
| 8 | pub struct Notification { |
| 9 | pub method: String, |
| 10 | #[serde(default = "serde_json::Value::default", skip_serializing_if = "serde_json::Value::is_null")] |
| 11 | pub params: Value, |
| 12 | } |
| 13 | |
| 14 | impl Notification { |
| 15 | pub fn new<T>(params: T::Params) -> Notification |
no outgoing calls