pub enum FieldChange {
Replaced,
Appended(Vec<Value>),
}Expand description
Represents the type of change made to a field for granular dirty tracking. This enables emitting only the actual changes rather than entire field values.
Variants§
Replaced
Field was replaced with a new value (emit the full value from state)
Appended(Vec<Value>)
Items were appended to an array field (emit only the new items)
Trait Implementations§
Source§impl Clone for FieldChange
impl Clone for FieldChange
Source§fn clone(&self) -> FieldChange
fn clone(&self) -> FieldChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldChange
impl RefUnwindSafe for FieldChange
impl Send for FieldChange
impl Sync for FieldChange
impl Unpin for FieldChange
impl UnwindSafe for FieldChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more