pub trait LatticeMerger: Send + Sync { // Required method fn merge( &self, current: Option<&Value>, delta: &Value, ) -> TireaResult<Value>; }
Type-erased lattice merge function.
Merge a delta into the current value.
If current is None (field missing), the delta is returned directly. Otherwise, deserializes both, calls Lattice::merge, and serializes the result.
current
None
Lattice::merge