pub struct Policy {Show 17 fields
pub name: String,
pub compare_stdout: bool,
pub compare_stderr: bool,
pub compare_exit_code: bool,
pub compare_duration: bool,
pub allow_null_absent_equivalence: bool,
pub allow_integer_float_equivalence: bool,
pub allow_header_case_difference: bool,
pub allow_object_key_order_difference: bool,
pub fail_on_orphan_candidate: bool,
pub decimal_as_string: bool,
pub ignore_stack_trace: bool,
pub ignore_error_message: bool,
pub ignore_paths: Vec<String>,
pub unordered_paths: Vec<String>,
pub ignored_headers: Vec<String>,
pub db_maps: BTreeMap<String, DbMap>,
}Fields§
§name: String§compare_stdout: bool§compare_stderr: bool§compare_exit_code: bool§compare_duration: bool§allow_null_absent_equivalence: bool§allow_integer_float_equivalence: bool§allow_header_case_difference: bool§allow_object_key_order_difference: bool§fail_on_orphan_candidate: bool§decimal_as_string: bool§ignore_stack_trace: bool§ignore_error_message: bool§ignore_paths: Vec<String>§unordered_paths: Vec<String>§ignored_headers: Vec<String>§db_maps: BTreeMap<String, DbMap>Implementations§
Source§impl Policy
impl Policy
pub fn values_equivalent( &self, reference: &CanonicalValue, candidate: &CanonicalValue, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for Policy
impl Freeze for Policy
impl Move for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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