Struct NapConsistency
pub struct NapConsistency {
pub matches_name: bool,
pub matches_address: bool,
pub matches_phone: bool,
}Expand description
Consistency result for name/address/phone fields.
Fields§
§matches_name: bool§matches_address: bool§matches_phone: boolImplementations§
§impl NapConsistency
impl NapConsistency
pub fn compare(expected: &NapRecord, observed: &NapRecord) -> NapConsistency
pub fn compare(expected: &NapRecord, observed: &NapRecord) -> NapConsistency
Compares two name/address/phone records with case-insensitive text matching.
pub const fn is_consistent(self) -> bool
pub const fn is_consistent(self) -> bool
Returns true when all fields match.
Trait Implementations§
§impl Clone for NapConsistency
impl Clone for NapConsistency
§fn clone(&self) -> NapConsistency
fn clone(&self) -> NapConsistency
Returns a duplicate 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 more§impl Debug for NapConsistency
impl Debug for NapConsistency
§impl PartialEq for NapConsistency
impl PartialEq for NapConsistency
impl Copy for NapConsistency
impl Eq for NapConsistency
impl StructuralPartialEq for NapConsistency
Auto Trait Implementations§
impl Freeze for NapConsistency
impl RefUnwindSafe for NapConsistency
impl Send for NapConsistency
impl Sync for NapConsistency
impl Unpin for NapConsistency
impl UnsafeUnpin for NapConsistency
impl UnwindSafe for NapConsistency
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