Skip to main content

DataQualityPreset

Enum DataQualityPreset 

Source
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

Source

pub fn missing_rate(&self) -> f64

Returns the missing value rate for this preset.

Source

pub fn typo_rate(&self) -> f64

Returns the typo rate for this preset.

Source

pub fn duplicate_rate(&self) -> f64

Returns the duplicate rate for this preset.

Source

pub fn format_variations_enabled(&self) -> bool

Returns whether format variations are enabled for this preset.

Source

pub fn ocr_errors_enabled(&self) -> bool

Returns whether OCR-style errors are enabled for this preset.

Source

pub fn encoding_issues_enabled(&self) -> bool

Returns whether encoding issues are enabled for this preset.

Source

pub fn encoding_issue_rate(&self) -> f64

Returns the encoding issue rate for this preset.

Source

pub fn overrides_settings(&self) -> bool

Returns true if this preset overrides individual settings.

Source

pub fn description(&self) -> &'static str

Returns a human-readable description of this preset.

Trait Implementations§

Source§

impl Clone for DataQualityPreset

Source§

fn clone(&self) -> DataQualityPreset

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DataQualityPreset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DataQualityPreset

Source§

fn default() -> DataQualityPreset

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for DataQualityPreset

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for DataQualityPreset

Source§

fn eq(&self, other: &DataQualityPreset) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DataQualityPreset

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for DataQualityPreset

Source§

impl Eq for DataQualityPreset

Source§

impl StructuralPartialEq for DataQualityPreset

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,