pub struct DiffBuilder { /* private fields */ }Expand description
Builder for Diff.
Implementations§
Source§impl DiffBuilder
impl DiffBuilder
pub fn ignore_paths(&mut self, value: Vec<IgnorePath>) -> &mut Self
Sourcepub fn equate_empty_arrays(&mut self, value: bool) -> &mut Self
pub fn equate_empty_arrays(&mut self, value: bool) -> &mut Self
If true arrays with a length of zero will be equal, regardless of whether they are nil.
pub fn approx_float_eq_epsilon(&mut self, value: f64) -> &mut Self
pub fn source(&mut self, value: Value) -> &mut Self
pub fn target(&mut self, value: Value) -> &mut Self
Source§impl DiffBuilder
impl DiffBuilder
pub fn ignore_path(&mut self, path: &str) -> &mut Self
pub fn ignore_path_with_missing( &mut self, path: &str, ignore_missing: bool, ) -> &mut Self
Trait Implementations§
Source§impl Clone for DiffBuilder
impl Clone for DiffBuilder
Source§fn clone(&self) -> DiffBuilder
fn clone(&self) -> DiffBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiffBuilder
impl RefUnwindSafe for DiffBuilder
impl Send for DiffBuilder
impl Sync for DiffBuilder
impl Unpin for DiffBuilder
impl UnwindSafe for DiffBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)