pub struct CsvReadOptions {
pub has_header: bool,
pub delimiter: u8,
pub schema: Option<Schema>,
pub file_extension: String,
}Expand description
Options that control the reading of CSV files. Simplification of CsvReadOptions from DataFusion
Fields§
§has_header: boolDoes the CSV file have a header?
If schema inference is run on a file with no headers, default column names are created.
delimiter: u8An optional column delimiter. Defaults to b','.
schema: Option<Schema>An optional schema representing the CSV files. If None, CSV reader will try to infer it based on data in file.
file_extension: StringFile extension; only files with this extension are selected for data input.
Defaults to FileType::CSV.get_ext().as_str().
Trait Implementations§
Source§impl Clone for CsvReadOptions
impl Clone for CsvReadOptions
Source§fn clone(&self) -> CsvReadOptions
fn clone(&self) -> CsvReadOptions
Returns a copy 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 CsvReadOptions
impl Debug for CsvReadOptions
Source§impl Default for CsvReadOptions
impl Default for CsvReadOptions
Source§fn default() -> CsvReadOptions
fn default() -> CsvReadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CsvReadOptions
impl RefUnwindSafe for CsvReadOptions
impl Send for CsvReadOptions
impl Sync for CsvReadOptions
impl Unpin for CsvReadOptions
impl UnwindSafe for CsvReadOptions
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