pub struct ValidationConfig {
pub enable_json_validation: bool,
pub enable_integrity_validation: bool,
pub enable_count_validation: bool,
pub enable_size_validation: bool,
pub enable_encoding_validation: bool,
pub max_data_loss_rate: f64,
pub min_expected_file_size: usize,
pub max_expected_file_size: usize,
pub verbose_logging: bool,
}
Expand description
Validation configuration
Fields§
§enable_json_validation: bool
Whether to enable JSON structure validation
enable_integrity_validation: bool
Whether to enable data integrity validation
enable_count_validation: bool
Whether to enable allocation count validation
enable_size_validation: bool
Whether to enable file size validation
enable_encoding_validation: bool
Whether to enable encoding validation
max_data_loss_rate: f64
Maximum allowed data loss rate (percentage)
min_expected_file_size: usize
Minimum expected file size (bytes)
max_expected_file_size: usize
Maximum expected file size (bytes)
verbose_logging: bool
Whether to enable verbose logging
Implementations§
Source§impl ValidationConfig
impl ValidationConfig
Sourcepub fn for_fast_mode() -> Self
pub fn for_fast_mode() -> Self
Configuration optimized for fast mode - minimal validation
Sourcepub fn for_slow_mode() -> Self
pub fn for_slow_mode() -> Self
Configuration for slow mode - comprehensive validation
Sourcepub fn with_strategy(strategy: ValidationStrategy) -> Self
pub fn with_strategy(strategy: ValidationStrategy) -> Self
Create configuration with custom validation strategy
Sourcepub fn conflicts_with_mode(&self, mode: &ExportMode) -> Vec<String>
pub fn conflicts_with_mode(&self, mode: &ExportMode) -> Vec<String>
Check if configuration conflicts with the given export mode
Sourcepub fn apply_safe_defaults_for_mode(&mut self, mode: &ExportMode)
pub fn apply_safe_defaults_for_mode(&mut self, mode: &ExportMode)
Apply safe defaults for the given export mode
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 ValidationConfig
impl Debug for ValidationConfig
Source§impl Default for ValidationConfig
impl Default for ValidationConfig
Source§impl<'de> Deserialize<'de> for ValidationConfig
impl<'de> Deserialize<'de> for ValidationConfig
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 ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more