pub struct ProcessArgs {Show 22 fields
pub input: PathBuf,
pub output: Option<PathBuf>,
pub schema: Option<PathBuf>,
pub index: Option<PathBuf>,
pub index_variant: Option<String>,
pub sort: Vec<String>,
pub columns: Vec<String>,
pub exclude_columns: Vec<String>,
pub derives: Vec<String>,
pub filters: Vec<String>,
pub filter_exprs: Vec<String>,
pub row_numbers: bool,
pub limit: Option<usize>,
pub delimiter: Option<u8>,
pub output_delimiter: Option<u8>,
pub input_encoding: Option<String>,
pub output_encoding: Option<String>,
pub boolean_format: BooleanFormat,
pub preview: bool,
pub table: bool,
pub apply_mappings: bool,
pub skip_mappings: bool,
}Fields§
§input: PathBufInput CSV file to process
output: Option<PathBuf>Output CSV file (stdout if omitted)
schema: Option<PathBuf>Schema file to drive typed operations and apply value replacements
index: Option<PathBuf>Existing index file to speed up operations
index_variant: Option<String>Specific index variant name to use from the selected index file
sort: Vec<String>Sort directives of the form column[:asc|desc]
columns: Vec<String>Restrict output to this comma-separated list of columns
exclude_columns: Vec<String>Exclude this comma-separated list of columns from output
derives: Vec<String>Additional derived columns using name=expression
filters: Vec<String>Row-level filters such as amount>=100 or status = shipped
filter_exprs: Vec<String>Evalexpr-based filter expressions that must evaluate to truthy values
row_numbers: boolEmit 1-based row numbers as the first column
limit: Option<usize>Limit number of rows emitted
delimiter: Option<u8>CSV delimiter character for reading input
output_delimiter: Option<u8>Delimiter to use for output (defaults to input delimiter)
input_encoding: Option<String>Character encoding of the input file (defaults to utf-8)
output_encoding: Option<String>Character encoding for the output file/stdout (defaults to utf-8)
boolean_format: BooleanFormatNormalize boolean columns in output
preview: boolRender results as a preview table on stdout (disables –output and defaults the row limit)
table: boolRender output as an elastic table to stdout
apply_mappings: boolApply schema-defined datatype mappings before replacements (auto when available)
skip_mappings: boolSkip schema-defined datatype mappings even if they exist
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