Mutable access to NEW fields (for BEFORE trigger ASSIGN mutations). Ensures the cache is initialized first.
(&mut self)
| 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>`. |
no test coverage detected