pub struct IndexArgs {
pub input: PathBuf,
pub index: PathBuf,
pub columns: Vec<String>,
pub specs: Vec<String>,
pub coverings: Vec<String>,
pub schema: Option<PathBuf>,
pub limit: Option<usize>,
pub delimiter: Option<u8>,
pub input_encoding: Option<String>,
}Fields§
§input: PathBufInput CSV file to index
index: PathBufOutput index file (.idx)
columns: Vec<String>Columns to include in a single ascending index (deprecated when –spec is used)
specs: Vec<String>Repeatable index specifications such as col_a:asc,col_b:desc or fast=col_a:asc
coverings: Vec<String>Generate covering index variants by expanding column prefixes and direction combinations (use | to separate directions)
schema: Option<PathBuf>Optional schema file describing column types
limit: Option<usize>Limit number of rows to scan (useful for prototyping)
delimiter: Option<u8>CSV delimiter character (supports ‘,’, ‘tab’, ‘;’, ‘|’)
input_encoding: Option<String>Character encoding of the input file (defaults to utf-8)
Trait Implementations§
Source§impl Args for IndexArgs
impl Args for IndexArgs
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 FromArgMatches for IndexArgs
impl FromArgMatches for IndexArgs
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.Auto Trait Implementations§
impl Freeze for IndexArgs
impl RefUnwindSafe for IndexArgs
impl Send for IndexArgs
impl Sync for IndexArgs
impl Unpin for IndexArgs
impl UnwindSafe for IndexArgs
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> 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