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