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

Method new_fields

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

Access NEW fields, decoding lazily from raw bytes if needed.

(&self)

Source from the content-addressed store, hash-verified

101
102 /// Access NEW fields, decoding lazily from raw bytes if needed.
103 pub fn new_fields(&self) -> Option<&HashMap<String, Value>> {
104 self.new_cache
105 .get_or_init(|| {
106 self.new_raw
107 .as_ref()
108 .and_then(|bytes| decode_msgpack_to_value_map(bytes, &self.row_id))
109 })
110 .as_ref()
111 }
112
113 /// Access OLD fields, decoding lazily from raw bytes if needed.
114 pub fn old_fields(&self) -> Option<&HashMap<String, Value>> {

Callers 6

partition_by_fieldFunction · 0.80
custom_key_fnFunction · 0.80
build_row_bindingsFunction · 0.80
new_fields_mutMethod · 0.80
build_before_bindingsFunction · 0.80
dispatch_trigger_batchFunction · 0.80

Calls 2

as_refMethod · 0.45

Tested by 1

custom_key_fnFunction · 0.64