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

Function insert_opt_bool

crates/opencode-provider/src/responses.rs:2341–2345  ·  view source on GitHub ↗
(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<bool>)

Source from the content-addressed store, hash-verified

2339}
2340
2341fn insert_opt_bool(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<bool>) {
2342 if let Some(value) = value {
2343 obj.insert(key.to_string(), Value::Bool(value));
2344 }
2345}
2346
2347fn insert_opt_value(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<Value>) {
2348 if let Some(value) = value {

Callers 1

get_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected