pub struct Change {
pub message: String,
pub old_path: JsonPathStack,
pub new_path: JsonPathStack,
pub comparison: ChangeComparison,
pub class: ChangeClass,
pub details: ChangeDetails,
}Fields§
§message: StringHuman-readable message describing the nature of the change.
old_path: JsonPathStackThe path in the old document where the change was detected.
new_path: JsonPathStackThe path in the new document where the change was detected.
comparison: ChangeComparisonThe way in which the relevant structures during the comparison.
class: ChangeClassClassification of the change compatibility.
details: ChangeDetailsDetails on the kind of change
Implementations§
Source§impl Change
impl Change
pub fn new( message: impl ToString, old_path: JsonPathStack, new_path: JsonPathStack, comparison: ChangeComparison, class: ChangeClass, details: ChangeDetails, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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