MCPcopy Create free account
hub / github.com/csskit/csskit / Notification

Class Notification

crates/csskit_lsp/src/jsonrpc/notification.rs:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)]
8pub 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
14impl Notification {
15 pub fn new<T>(params: T::Params) -> Notification

Callers 3

smoke_testFunction · 0.85
on_eventMethod · 0.85
fromMethod · 0.85

Calls

no outgoing calls

Tested by 1

smoke_testFunction · 0.68