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

Class Request

crates/csskit_lsp/src/jsonrpc/request.rs:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)]
10pub 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
17impl Request {
18 pub fn new<T>(id: Id, params: T::Params) -> Request

Callers 3

smoke_testFunction · 0.85
fromMethod · 0.85

Calls

no outgoing calls

Tested by 2

smoke_testFunction · 0.68