pub struct CompareReport {
pub differences: Vec<Difference>,
pub moves: Vec<ArrayMove>,
pub similarity: f64,
pub visited: usize,
}Expand description
JSON comparison output. It is not an applicable or reversible patch.
Fields§
§differences: Vec<Difference>§moves: Vec<ArrayMove>Empty for unordered arrays. Reports index changes, not a minimal edit script.
similarity: f64Matching terminal/absent/type-change units divided by all such units. Each reported move adds an unmatched unit; excluded nodes add no units. Empty/fully excluded comparisons have similarity 1.0.
visited: usizeNode visits, matching checks and decimal digit work, including discarded candidate comparisons.
Trait Implementations§
Source§impl Clone for CompareReport
impl Clone for CompareReport
Source§impl Debug for CompareReport
impl Debug for CompareReport
Source§impl<'de> Deserialize<'de> for CompareReport
impl<'de> Deserialize<'de> for CompareReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompareReport
impl PartialEq for CompareReport
Source§impl Serialize for CompareReport
impl Serialize for CompareReport
impl StructuralPartialEq for CompareReport
Auto Trait Implementations§
impl Freeze for CompareReport
impl RefUnwindSafe for CompareReport
impl Send for CompareReport
impl Sync for CompareReport
impl Unpin for CompareReport
impl UnsafeUnpin for CompareReport
impl UnwindSafe for CompareReport
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