Struct assert_json_diff::Config
source · [−]pub struct Config { /* private fields */ }
Expand description
Configuration for how JSON values should be compared.
Implementations
sourceimpl Config
impl Config
sourcepub fn new(compare_mode: CompareMode) -> Self
pub fn new(compare_mode: CompareMode) -> Self
Create a new Config
using the given CompareMode
.
The default numeric_mode
is be NumericMode::Strict
.
sourcepub fn numeric_mode(self, numeric_mode: NumericMode) -> Self
pub fn numeric_mode(self, numeric_mode: NumericMode) -> Self
Change the config’s numeric mode.
The default numeric_mode
is be NumericMode::Strict
.
sourcepub fn compare_mode(self, compare_mode: CompareMode) -> Self
pub fn compare_mode(self, compare_mode: CompareMode) -> Self
Change the config’s compare mode.
Trait Implementations
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more