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

Method with_payload

crates/opencode-plugin/src/lib.rs:18–22  ·  view source on GitHub ↗
(payload: serde_json::Value)

Source from the content-addressed store, hash-verified

16
17impl HookOutput {
18 pub fn with_payload(payload: serde_json::Value) -> Self {
19 Self {
20 payload: Some(payload),
21 }
22 }
23}
24
25impl From<()> for HookOutput {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected