MCPcopy Create free account
hub / github.com/douglance/devsql / put

Function put

crates/ccql/src/datasources/transcript.rs:130–140  ·  view source on GitHub ↗
(
        fields: &mut Vec<(&'static str, &'a serde_json::Value)>,
        key: &'static str,
        value: Option<&'a serde_json::Value>,
    )

Source from the content-addressed store, hash-verified

128 };
129
130 fn put<'a>(
131 fields: &mut Vec<(&'static str, &'a serde_json::Value)>,
132 key: &'static str,
133 value: Option<&'a serde_json::Value>,
134 ) {
135 if let Some(value) = value {
136 if !value.is_null() {
137 fields.push((key, value));
138 }
139 }
140 }
141
142 put(&mut fields, "model", message.get("model"));
143

Callers 1

flattened_usage_fieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected