pub struct ExportArgs {
pub mode: ExportMode,
pub validation: ValidationTiming,
pub disable_validation: bool,
pub output: PathBuf,
pub timeout: u64,
pub verbose: bool,
pub max_data_loss_rate: f64,
pub min_file_size: usize,
pub max_file_size: usize,
}
Expand description
Command line arguments for export operations
Fields§
§mode: ExportMode
Export mode: fast (speed optimized), slow (thorough validation), or auto (adaptive)
validation: ValidationTiming
Validation timing: inline (during export), deferred (after export), or disabled
disable_validation: bool
Disable all validation (overrides validation timing)
output: PathBuf
Output file path
timeout: u64
Validation timeout in seconds
verbose: bool
Enable verbose logging
max_data_loss_rate: f64
Maximum data loss rate percentage (0.0-100.0)
min_file_size: usize
Minimum expected file size in bytes
max_file_size: usize
Maximum expected file size in bytes
Implementations§
Source§impl ExportArgs
impl ExportArgs
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Validate command line arguments and return helpful error messages
Sourcepub fn to_export_config(&self) -> ExportConfig
pub fn to_export_config(&self) -> ExportConfig
Convert CLI arguments to ExportConfig
Sourcepub fn get_timeout_duration(&self) -> Duration
pub fn get_timeout_duration(&self) -> Duration
Get timeout duration
Sourcepub fn print_mode_help()
pub fn print_mode_help()
Print help information for export modes
Sourcepub fn print_validation_help()
pub fn print_validation_help()
Print help information for validation timing
Trait Implementations§
Source§impl Args for ExportArgs
impl Args for ExportArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for ExportArgs
impl Clone for ExportArgs
Source§fn clone(&self) -> ExportArgs
fn clone(&self) -> ExportArgs
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 CommandFactory for ExportArgs
impl CommandFactory for ExportArgs
Source§impl Debug for ExportArgs
impl Debug for ExportArgs
Source§impl FromArgMatches for ExportArgs
impl FromArgMatches for ExportArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Parser for ExportArgs
impl Parser for ExportArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ExportArgs
impl RefUnwindSafe for ExportArgs
impl Send for ExportArgs
impl Sync for ExportArgs
impl Unpin for ExportArgs
impl UnwindSafe for ExportArgs
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