pub struct CsvOptions {
pub delimiter: Option<u8>,
pub decimal: Decimal,
}Expand description
How a delimited file is read: the options a mount carries
(?delimiter=, ?decimal=) and the extension’s default.
Fields§
§delimiter: Option<u8>?delimiter=, decided before anything is read.
decimal: Decimal?decimal=; point when the source says nothing.
Implementations§
Source§impl CsvOptions
impl CsvOptions
Sourcepub fn with_delimiter_label(self, label: &str) -> Result<Self, CsvError>
pub fn with_delimiter_label(self, label: &str) -> Result<Self, CsvError>
Read the two options off their labels: a delimiter is one
character or comma / semicolon / tab / pipe; the
decimal convention is point or comma.
pub fn with_decimal_label(self, label: &str) -> Result<Self, CsvError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CsvOptions
impl RefUnwindSafe for CsvOptions
impl Send for CsvOptions
impl Sync for CsvOptions
impl Unpin for CsvOptions
impl UnsafeUnpin for CsvOptions
impl UnwindSafe for CsvOptions
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