pub struct MismatchLogging {
pub value: Option<bool>,
pub diff: Option<MismatchDiff>,
}Expand description
Content of the one warning emitted per confirmed shadow mismatch. Both leaves default off, and the warning is emitted when either is on.
Fields§
§value: Option<bool>Log the JSON of both compared values. Defaults to false.
diff: Option<MismatchDiff>How much of the structural difference to log. Defaults to
MismatchDiff::Off.
Trait Implementations§
Source§impl Clone for MismatchLogging
impl Clone for MismatchLogging
Source§fn clone(&self) -> MismatchLogging
fn clone(&self) -> MismatchLogging
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MismatchLogging
Source§impl Debug for MismatchLogging
impl Debug for MismatchLogging
Source§impl Default for MismatchLogging
impl Default for MismatchLogging
Source§fn default() -> MismatchLogging
fn default() -> MismatchLogging
Returns the “default value” for a type. Read more
impl Eq for MismatchLogging
Source§impl PartialEq for MismatchLogging
impl PartialEq for MismatchLogging
Source§fn eq(&self, other: &MismatchLogging) -> bool
fn eq(&self, other: &MismatchLogging) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MismatchLogging
Auto Trait Implementations§
impl Freeze for MismatchLogging
impl RefUnwindSafe for MismatchLogging
impl Send for MismatchLogging
impl Sync for MismatchLogging
impl Unpin for MismatchLogging
impl UnsafeUnpin for MismatchLogging
impl UnwindSafe for MismatchLogging
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.