pub struct DuplicateSchemaConfig {
pub enabled: bool,
pub rate: f64,
pub exact_duplicate_ratio: f64,
pub near_duplicate_ratio: f64,
pub fuzzy_duplicate_ratio: f64,
pub max_date_offset_days: u32,
pub max_amount_variance: f64,
}Expand description
Duplicate injection configuration.
Fields§
§enabled: boolEnable duplicate injection
rate: f64Overall duplicate rate
exact_duplicate_ratio: f64Exact duplicate proportion (out of duplicates)
near_duplicate_ratio: f64Near duplicate proportion (slight variations)
fuzzy_duplicate_ratio: f64Fuzzy duplicate proportion (typos in key fields)
max_date_offset_days: u32Maximum date offset for near/fuzzy duplicates (days)
max_amount_variance: f64Maximum amount variance for near duplicates (fraction)
Trait Implementations§
Source§impl Clone for DuplicateSchemaConfig
impl Clone for DuplicateSchemaConfig
Source§fn clone(&self) -> DuplicateSchemaConfig
fn clone(&self) -> DuplicateSchemaConfig
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 moreSource§impl Debug for DuplicateSchemaConfig
impl Debug for DuplicateSchemaConfig
Source§impl Default for DuplicateSchemaConfig
impl Default for DuplicateSchemaConfig
Source§impl<'de> Deserialize<'de> for DuplicateSchemaConfig
impl<'de> Deserialize<'de> for DuplicateSchemaConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DuplicateSchemaConfig
impl RefUnwindSafe for DuplicateSchemaConfig
impl Send for DuplicateSchemaConfig
impl Sync for DuplicateSchemaConfig
impl Unpin for DuplicateSchemaConfig
impl UnwindSafe for DuplicateSchemaConfig
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