pub struct CsvParserConfig {
pub flexible: bool,
pub delimiter: Option<u8>,
pub quote_char: u8,
pub trim_whitespace: bool,
pub has_header: bool,
pub max_rows: Option<usize>,
}Expand description
Configuration for CSV parsing and analysis.
Replaces the 7 separate analyze_csv_* functions with a single config struct.
Supports both file-based and reader-based (streaming) entry points.
Fields§
§flexible: boolAllow ragged rows (flexible field counts).
delimiter: Option<u8>Custom delimiter (None = comma).
quote_char: u8Quote character, used for delimiter detection and parsing.
trim_whitespace: boolTrim whitespace from fields.
has_header: boolWhether the first row contains column headers.
When false, columns are named column_0, column_1, etc.
max_rows: Option<usize>Maximum rows to process (None = all rows).
Implementations§
Source§impl CsvParserConfig
impl CsvParserConfig
Sourcepub fn with_delimiter(self, delimiter: u8) -> Self
pub fn with_delimiter(self, delimiter: u8) -> Self
Set the delimiter.
Sourcepub fn has_header(self, yes: bool) -> Self
pub fn has_header(self, yes: bool) -> Self
Set whether the first row contains column headers.
Trait Implementations§
Source§impl Clone for CsvParserConfig
impl Clone for CsvParserConfig
Source§impl Debug for CsvParserConfig
impl Debug for CsvParserConfig
Auto Trait Implementations§
impl Forget for CsvParserConfig
impl Freeze for CsvParserConfig
impl Move for CsvParserConfig
impl RefUnwindSafe for CsvParserConfig
impl Send for CsvParserConfig
impl Sync for CsvParserConfig
impl Unpin for CsvParserConfig
impl UnsafeUnpin for CsvParserConfig
impl UnwindSafe for CsvParserConfig
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