Change

Struct Change 

Source
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: String

Human-readable message describing the nature of the change.

§old_path: JsonPathStack

The path in the old document where the change was detected.

§new_path: JsonPathStack

The path in the new document where the change was detected.

§comparison: ChangeComparison

The way in which the relevant structures during the comparison.

§class: ChangeClass

Classification of the change compatibility.

§details: ChangeDetails

Details on the kind of change

Implementations§

Source§

impl Change

Source

pub fn new( message: impl ToString, old_path: JsonPathStack, new_path: JsonPathStack, comparison: ChangeComparison, class: ChangeClass, details: ChangeDetails, ) -> Self

Trait Implementations§

Source§

impl Debug for Change

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.