pub struct CsvDecodeOptions {
pub delimiter: u8,
pub nulls: Vec<&'static str>,
pub quote: u8,
pub has_header: bool,
pub schema: Option<Vec<Field>>,
pub all_as_text: bool,
pub categorical_cols: HashSet<String>,
}Expand description
Options for CSV decoding.
Fields§
§delimiter: u8Delimiter (e.g., b’,’ for CSV, b’\t’ for TSV).
nulls: Vec<&'static str>String(s) that should be parsed as nulls.
quote: u8Quote character to use (default: ‘“’).
has_header: boolWhether to use the first row as a header.
schema: Option<Vec<Field>>Optional schema. If None, schema is inferred.
all_as_text: boolIf true, all columns are loaded as String32.
categorical_cols: HashSet<String>For categoricals: columns that should be parsed as categorical.
Trait Implementations§
Source§impl Clone for CsvDecodeOptions
impl Clone for CsvDecodeOptions
Source§fn clone(&self) -> CsvDecodeOptions
fn clone(&self) -> CsvDecodeOptions
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 CsvDecodeOptions
impl Debug for CsvDecodeOptions
Auto Trait Implementations§
impl Freeze for CsvDecodeOptions
impl RefUnwindSafe for CsvDecodeOptions
impl Send for CsvDecodeOptions
impl Sync for CsvDecodeOptions
impl Unpin for CsvDecodeOptions
impl UnwindSafe for CsvDecodeOptions
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