pub enum DataQualityPreset {
None,
Minimal,
Normal,
High,
Custom,
Clean,
Noisy,
Legacy,
}Expand description
Preset configurations for common data quality scenarios.
Variants§
None
No data quality variations (clean data)
Minimal
Minimal variations (very clean data with rare issues)
Normal
Normal variations (realistic enterprise data quality)
High
High variations (messy data for stress testing)
Custom
Custom (use individual settings)
Clean
Clean profile for ML training - minimal data quality issues Missing: 0.1%, Typos: 0.05%, Duplicates: 0%, Format: None
Noisy
Noisy profile simulating typical production data issues Missing: 5%, Typos: 2%, Duplicates: 1%, Format: Medium
Legacy
Legacy profile simulating migrated/OCR’d historical data Missing: 10%, Typos: 5%, Duplicates: 3%, Format: Heavy + OCR
Implementations§
Source§impl DataQualityPreset
impl DataQualityPreset
Sourcepub fn missing_rate(&self) -> f64
pub fn missing_rate(&self) -> f64
Returns the missing value rate for this preset.
Sourcepub fn duplicate_rate(&self) -> f64
pub fn duplicate_rate(&self) -> f64
Returns the duplicate rate for this preset.
Sourcepub fn format_variations_enabled(&self) -> bool
pub fn format_variations_enabled(&self) -> bool
Returns whether format variations are enabled for this preset.
Sourcepub fn ocr_errors_enabled(&self) -> bool
pub fn ocr_errors_enabled(&self) -> bool
Returns whether OCR-style errors are enabled for this preset.
Sourcepub fn encoding_issues_enabled(&self) -> bool
pub fn encoding_issues_enabled(&self) -> bool
Returns whether encoding issues are enabled for this preset.
Sourcepub fn encoding_issue_rate(&self) -> f64
pub fn encoding_issue_rate(&self) -> f64
Returns the encoding issue rate for this preset.
Sourcepub fn overrides_settings(&self) -> bool
pub fn overrides_settings(&self) -> bool
Returns true if this preset overrides individual settings.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a human-readable description of this preset.
Trait Implementations§
Source§impl Clone for DataQualityPreset
impl Clone for DataQualityPreset
Source§fn clone(&self) -> DataQualityPreset
fn clone(&self) -> DataQualityPreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataQualityPreset
impl Debug for DataQualityPreset
Source§impl Default for DataQualityPreset
impl Default for DataQualityPreset
Source§fn default() -> DataQualityPreset
fn default() -> DataQualityPreset
Source§impl<'de> Deserialize<'de> for DataQualityPreset
impl<'de> Deserialize<'de> for DataQualityPreset
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>,
Source§impl PartialEq for DataQualityPreset
impl PartialEq for DataQualityPreset
Source§impl Serialize for DataQualityPreset
impl Serialize for DataQualityPreset
impl Copy for DataQualityPreset
impl Eq for DataQualityPreset
impl StructuralPartialEq for DataQualityPreset
Auto Trait Implementations§
impl Freeze for DataQualityPreset
impl RefUnwindSafe for DataQualityPreset
impl Send for DataQualityPreset
impl Sync for DataQualityPreset
impl Unpin for DataQualityPreset
impl UnwindSafe for DataQualityPreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.