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

Method try_from

crates/opencode-session/src/prompt.rs:79–81  ·  view source on GitHub ↗
(value: serde_json::Value)

Source from the content-addressed store, hash-verified

77 type Error = String;
78
79 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
80 serde_json::from_value(value).map_err(|e| format!("Invalid PartInput: {}", e))
81 }
82}
83
84impl PartInput {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected