pub struct DuplicateConfig {
pub duplicate_rate: f64,
pub exact_rate: f64,
pub near_rate: f64,
pub fuzzy_rate: f64,
pub max_date_offset_days: i64,
pub varying_fields: Vec<String>,
pub amount_variance: f64,
}Expand description
Configuration for duplicate generation.
Fields§
§duplicate_rate: f64Overall duplicate rate.
exact_rate: f64Exact duplicate rate (of duplicates).
near_rate: f64Near duplicate rate (of duplicates).
fuzzy_rate: f64Fuzzy duplicate rate (of duplicates).
max_date_offset_days: i64Maximum days between duplicate entries.
varying_fields: Vec<String>Fields that commonly vary in near duplicates.
amount_variance: f64Amount variance for near duplicates (percentage).
Trait Implementations§
Source§impl Clone for DuplicateConfig
impl Clone for DuplicateConfig
Source§fn clone(&self) -> DuplicateConfig
fn clone(&self) -> DuplicateConfig
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 moreSource§impl Debug for DuplicateConfig
impl Debug for DuplicateConfig
Auto Trait Implementations§
impl Freeze for DuplicateConfig
impl RefUnwindSafe for DuplicateConfig
impl Send for DuplicateConfig
impl Sync for DuplicateConfig
impl Unpin for DuplicateConfig
impl UnsafeUnpin for DuplicateConfig
impl UnwindSafe for DuplicateConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.