pub struct CsvScanOptions {
pub has_headers: bool,
pub columns: Vec<String>,
pub column_indexes: Vec<usize>,
pub delimiter: u8,
}Expand description
Options controlling which CSV columns are scanned.
Fields§
§has_headers: boolWhether the first record contains headers.
columns: Vec<String>Column names to scan when headers are present.
column_indexes: Vec<usize>Zero-based column indexes to scan.
delimiter: u8CSV delimiter byte.
Trait Implementations§
Source§impl Clone for CsvScanOptions
impl Clone for CsvScanOptions
Source§fn clone(&self) -> CsvScanOptions
fn clone(&self) -> CsvScanOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CsvScanOptions
impl Debug for CsvScanOptions
Source§impl Default for CsvScanOptions
impl Default for CsvScanOptions
Source§fn default() -> CsvScanOptions
fn default() -> CsvScanOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CsvScanOptions
impl<'de> Deserialize<'de> for CsvScanOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CsvScanOptions
impl PartialEq for CsvScanOptions
Source§fn eq(&self, other: &CsvScanOptions) -> bool
fn eq(&self, other: &CsvScanOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CsvScanOptions
impl Serialize for CsvScanOptions
impl Eq for CsvScanOptions
impl StructuralPartialEq for CsvScanOptions
Auto Trait Implementations§
impl Freeze for CsvScanOptions
impl RefUnwindSafe for CsvScanOptions
impl Send for CsvScanOptions
impl Sync for CsvScanOptions
impl Unpin for CsvScanOptions
impl UnsafeUnpin for CsvScanOptions
impl UnwindSafe for CsvScanOptions
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