pub struct ConfigDiff {
pub changed: Vec<(String, String, String)>,
pub added: Vec<(String, String)>,
pub removed: Vec<(String, String)>,
pub has_changes: bool,
}Expand description
Field-level diff between two MainConfig values.
Each tuple in changed is (field_name, old_value, new_value).
Each tuple in added and removed is (field_name, value).
Fields§
§changed: Vec<(String, String, String)>Fields whose values differ between A and B.
added: Vec<(String, String)>Fields present in B but absent in A.
removed: Vec<(String, String)>Fields present in A but absent in B.
has_changes: boolWhether any field-level changes were detected.
Trait Implementations§
Source§impl Clone for ConfigDiff
impl Clone for ConfigDiff
Source§fn clone(&self) -> ConfigDiff
fn clone(&self) -> ConfigDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigDiff
impl RefUnwindSafe for ConfigDiff
impl Send for ConfigDiff
impl Sync for ConfigDiff
impl Unpin for ConfigDiff
impl UnsafeUnpin for ConfigDiff
impl UnwindSafe for ConfigDiff
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