pub struct CsvConfig { /* private fields */ }Expand description
Configuration for loading data from a CSV file.
Implementations§
Source§impl CsvConfig
impl CsvConfig
Sourcepub fn has_headers(&self) -> bool
pub fn has_headers(&self) -> bool
Whether the CSV file has a header row.
Sourcepub fn columns(&self) -> &Option<Vec<String>>
pub fn columns(&self) -> &Option<Vec<String>>
An optional list of column names to select. If None, all columns are loaded.
Sourcepub fn target_index(&self) -> Option<usize>
pub fn target_index(&self) -> Option<usize>
The index of the target column.
Sourcepub fn exclude_indices(&self) -> &Vec<usize>
pub fn exclude_indices(&self) -> &Vec<usize>
Indices of columns to exclude.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CsvConfig
impl RefUnwindSafe for CsvConfig
impl Send for CsvConfig
impl Sync for CsvConfig
impl Unpin for CsvConfig
impl UnsafeUnpin for CsvConfig
impl UnwindSafe for CsvConfig
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