pub struct InputValidator;Expand description
Enhanced input validation with helpful error messages and suggestions
Implementations§
Source§impl InputValidator
impl InputValidator
Sourcepub fn validate_file_input(file_path: &Path) -> Result<(), ValidationError>
pub fn validate_file_input(file_path: &Path) -> Result<(), ValidationError>
Validate file input with helpful suggestions
Sourcepub fn validate_config_file(config_path: &Path) -> Result<(), ValidationError>
pub fn validate_config_file(config_path: &Path) -> Result<(), ValidationError>
Validate configuration file
Sourcepub fn validate_chunk_size(chunk_size: usize) -> Result<(), ValidationError>
pub fn validate_chunk_size(chunk_size: usize) -> Result<(), ValidationError>
Validate chunk size parameter
Sourcepub fn validate_sample_size(sample_size: usize) -> Result<(), ValidationError>
pub fn validate_sample_size(sample_size: usize) -> Result<(), ValidationError>
Validate sample size parameter
Sourcepub fn validate_argument_combinations(
streaming: bool,
sample: Option<usize>,
progress: bool,
benchmark: bool,
) -> Result<(), ValidationError>
pub fn validate_argument_combinations( streaming: bool, sample: Option<usize>, progress: bool, benchmark: bool, ) -> Result<(), ValidationError>
Validate conflicting arguments
Sourcepub fn validate_glob_pattern(pattern: &str) -> Result<(), ValidationError>
pub fn validate_glob_pattern(pattern: &str) -> Result<(), ValidationError>
Validate glob pattern
Sourcepub fn get_exit_code(error: &ValidationError) -> i32
pub fn get_exit_code(error: &ValidationError) -> i32
Get appropriate exit code for validation error
Auto Trait Implementations§
impl Freeze for InputValidator
impl RefUnwindSafe for InputValidator
impl Send for InputValidator
impl Sync for InputValidator
impl Unpin for InputValidator
impl UnsafeUnpin for InputValidator
impl UnwindSafe for InputValidator
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