MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / push

Method push

nodedb/src/data/executor/response_codec/arrow.rs:111–120  ·  view source on GitHub ↗
(&mut self, v: &serde_json::Value)

Source from the content-addressed store, hash-verified

109 }
110
111 fn push(&mut self, v: &serde_json::Value) {
112 match self {
113 Self::Str(vec) => vec.push(Some(match v {
114 serde_json::Value::String(s) => s.clone(),
115 other => other.to_string(),
116 })),
117 Self::I64(vec) => vec.push(v.as_i64()),
118 Self::F64(vec) => vec.push(v.as_f64()),
119 }
120 }
121
122 fn push_null(&mut self) {
123 match self {

Callers 8

encode_as_arrow_ipcFunction · 0.45
push_nullMethod · 0.45
encode_value_vecFunction · 0.45
encode_raw_document_rowsFunction · 0.45
decode_raw_scan_to_docsFunction · 0.45
decode_response_to_docsFunction · 0.45

Calls 4

to_stringMethod · 0.80
cloneMethod · 0.45
as_i64Method · 0.45
as_f64Method · 0.45

Tested by

no test coverage detected