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

Function insert_opt_u64

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

Source from the content-addressed store, hash-verified

2333}
2334
2335fn insert_opt_u64(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<u64>) {
2336 if let Some(value) = value {
2337 obj.insert(key.to_string(), Value::Number(value.into()));
2338 }
2339}
2340
2341fn insert_opt_bool(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<bool>) {
2342 if let Some(value) = value {

Callers 1

get_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected