Struct vegafusion_sql::dataframe::CsvReadOptions
source · 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