MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-plugin/src/subprocess/protocol.rs:23–30  ·  view source on GitHub ↗
(id: u64, method: impl Into<String>, params: Option<Value>)

Source from the content-addressed store, hash-verified

21
22impl RpcRequest {
23 pub fn new(id: u64, method: impl Into<String>, params: Option<Value>) -> Self {
24 Self {
25 jsonrpc: "2.0",
26 id,
27 method: method.into(),
28 params,
29 }
30 }
31}
32
33#[derive(Debug, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected