pub struct ProcessArgs {Show 14 fields
pub input: Vec<String>,
pub output: Option<PathBuf>,
pub format: OutputFormat,
pub language: Option<Language>,
pub language_config: Option<PathBuf>,
pub language_code: Option<String>,
pub parallel: bool,
pub adaptive: bool,
pub threads: Option<usize>,
pub chunk_kb: Option<usize>,
pub quiet: bool,
pub verbose: u8,
pub stream: bool,
pub stream_chunk_mb: u64,
}Expand description
Arguments for the process command
Fields§
§input: Vec<String>Input files or patterns (supports glob, use ‘-’ for stdin)
output: Option<PathBuf>Output file (default: stdout)
format: OutputFormatOutput format
language: Option<Language>Language for sentence detection rules NOTE: Mutually exclusive with –language-config
language_config: Option<PathBuf>Path to external language configuration file (TOML format) NOTE: Mutually exclusive with –language
language_code: Option<String>Language code for external configuration (optional) NOTE: Only used with –language-config
parallel: boolForce parallel processing even for small files
adaptive: boolUse adaptive processing (automatically choose best strategy) Note: This is experimental and currently uses the default processing
threads: Option<usize>Number of threads for parallel processing (default: auto)
chunk_kb: Option<usize>Chunk size in KB for parallel processing (default: 256)
quiet: boolSuppress progress output
verbose: u8Increase verbosity
stream: boolEnable streaming mode for large files (process in chunks)
stream_chunk_mb: u64Streaming chunk size in MB (default: 10MB)
Implementations§
Trait Implementations§
Source§impl Args for ProcessArgs
impl Args for ProcessArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ProcessArgs
impl Debug for ProcessArgs
Source§impl FromArgMatches for ProcessArgs
impl FromArgMatches for ProcessArgs
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>
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>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ProcessArgs
impl RefUnwindSafe for ProcessArgs
impl Send for ProcessArgs
impl Sync for ProcessArgs
impl Unpin for ProcessArgs
impl UnwindSafe for ProcessArgs
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> 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>
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>
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