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

Method new_fields_mut

nodedb/src/control/trigger/batch/collector.rs:140–144  ·  view source on GitHub ↗

Mutable access to NEW fields (for BEFORE trigger ASSIGN mutations). Ensures the cache is initialized first.

(&mut self)

Source from the content-addressed store, hash-verified

138 /// Mutable access to NEW fields (for BEFORE trigger ASSIGN mutations).
139 /// Ensures the cache is initialized first.
140 pub fn new_fields_mut(&mut self) -> Option<&mut HashMap<String, Value>> {
141 // Force initialization if not yet decoded.
142 let _ = self.new_fields();
143 self.new_cache.get_mut().and_then(|opt| opt.as_mut())
144 }
145}
146
147/// Decode raw msgpack bytes directly to `HashMap<String, nodedb_types::Value>`.

Callers 1

execute_before_batchFunction · 0.80

Calls 2

new_fieldsMethod · 0.80
get_mutMethod · 0.45

Tested by

no test coverage detected