pub struct SchemaProbeArgs {
pub input: PathBuf,
pub sample_rows: usize,
pub delimiter: Option<u8>,
pub input_encoding: Option<String>,
pub mapping: bool,
pub overrides: Vec<String>,
pub snapshot: Option<PathBuf>,
pub na_behavior: NaPlaceholderBehavior,
pub na_fill: Option<String>,
pub assume_header: Option<bool>,
}Fields§
§input: PathBufInput CSV file to inspect
sample_rows: usizeNumber of rows to sample when inferring types (0 means full scan)
delimiter: Option<u8>CSV delimiter character (supports ‘,’, ‘tab’, ‘;’, ‘|’)
input_encoding: Option<String>Character encoding of the input file (defaults to utf-8)
mapping: boolEmit column mapping templates to stdout after probing
overrides: Vec<String>Override inferred column types using name:type
snapshot: Option<PathBuf>Capture or validate a snapshot with header/type hash and sampled value summaries (writes if missing)
na_behavior: NaPlaceholderBehaviorHow to treat NA-style placeholders (NA, N/A, #N/A, #NA)
na_fill: Option<String>Replacement value used when –na-behavior=fill (defaults to empty string)
assume_header: Option<bool>Force header detection outcome (true treats first row as header, false treats it as data)
Trait Implementations§
Source§impl Args for SchemaProbeArgs
impl Args for SchemaProbeArgs
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 SchemaProbeArgs
impl Clone for SchemaProbeArgs
Source§fn clone(&self) -> SchemaProbeArgs
fn clone(&self) -> SchemaProbeArgs
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 Debug for SchemaProbeArgs
impl Debug for SchemaProbeArgs
Source§impl FromArgMatches for SchemaProbeArgs
impl FromArgMatches for SchemaProbeArgs
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 SchemaProbeArgs
impl RefUnwindSafe for SchemaProbeArgs
impl Send for SchemaProbeArgs
impl Sync for SchemaProbeArgs
impl Unpin for SchemaProbeArgs
impl UnwindSafe for SchemaProbeArgs
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> 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