pub enum SemanticChange {
Added {
path: String,
value: String,
},
Removed {
path: String,
old_value: String,
},
Modified {
path: String,
old_value: String,
new_value: String,
},
Moved {
old_path: String,
new_path: String,
value: String,
},
}Expand description
A single semantic change detected by a driver.
Variants§
Added
A value was added at a path (e.g., new key in JSON object).
Removed
A value was removed at a path.
Modified
A value was modified at a path.
Moved
A value was moved/renamed from one path to another.
Trait Implementations§
Source§impl Clone for SemanticChange
impl Clone for SemanticChange
Source§fn clone(&self) -> SemanticChange
fn clone(&self) -> SemanticChange
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 moreSource§impl Debug for SemanticChange
impl Debug for SemanticChange
Source§impl PartialEq for SemanticChange
impl PartialEq for SemanticChange
impl StructuralPartialEq for SemanticChange
Auto Trait Implementations§
impl Freeze for SemanticChange
impl RefUnwindSafe for SemanticChange
impl Send for SemanticChange
impl Sync for SemanticChange
impl Unpin for SemanticChange
impl UnsafeUnpin for SemanticChange
impl UnwindSafe for SemanticChange
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