[−][src]Struct json_structural_diff::JsonDiff
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
impl JsonDiff
[src]
pub fn diff(json1: &Value, json2: &Value, keys_only: bool) -> Self
[src]
Finds the JSON structural difference of two JSON files.
pub fn diff_string(
json1: &Value,
json2: &Value,
keys_only: bool
) -> Option<String>
[src]
json1: &Value,
json2: &Value,
keys_only: bool
) -> Option<String>
Finds the JSON structural difference of two JSON files and returns it as a formatted string.
Auto Trait Implementations
impl RefUnwindSafe for JsonDiff
[src]
impl Send for JsonDiff
[src]
impl Sync for JsonDiff
[src]
impl Unpin for JsonDiff
[src]
impl UnwindSafe for JsonDiff
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,