pub struct JsonDiff {
pub score: f64,
pub diff: Option<Value>,
}
Expand description
Auxiliary structure to encapsulate data about the structural difference of two JSON files.
Fields§
§score: f64
Quantifies the difference between two JSON files.
If 0.
: the two JSON files are entirely different one from the other.
If 100.
: the two JSON files are identical.
diff: Option<Value>
The JSON structural difference of two JSON files.
If None
: the two JSON files are identical.
Implementations§
Auto Trait Implementations§
impl Freeze for JsonDiff
impl RefUnwindSafe for JsonDiff
impl Send for JsonDiff
impl Sync for JsonDiff
impl Unpin for JsonDiff
impl UnwindSafe for JsonDiff
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