pub struct CsvOptions {
pub delimiter: u8,
pub quote_char: u8,
pub escape_char: Option<u8>,
pub header: bool,
pub skip_rows: usize,
pub max_rows: Option<usize>,
pub null_values: Vec<String>,
pub encoding: String,
}Expand description
CSV-specific options
Fields§
§delimiter: u8§quote_char: u8§escape_char: Option<u8>§header: bool§skip_rows: usize§max_rows: Option<usize>§null_values: Vec<String>§encoding: StringImplementations§
Source§impl CsvOptions
impl CsvOptions
pub fn new() -> Self
pub fn with_delimiter(self, delimiter: u8) -> Self
pub fn with_header(self, header: bool) -> Self
pub fn with_quote_char(self, quote_char: u8) -> Self
pub fn with_null_values(self, null_values: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for CsvOptions
impl Clone for CsvOptions
Source§fn clone(&self) -> CsvOptions
fn clone(&self) -> CsvOptions
Returns a duplicate 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 CsvOptions
impl Debug for CsvOptions
Source§impl Default for CsvOptions
impl Default for CsvOptions
Source§impl From<CsvOptions> for FormatOptions
impl From<CsvOptions> for FormatOptions
Source§fn from(csv: CsvOptions) -> Self
fn from(csv: CsvOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CsvOptions
impl RefUnwindSafe for CsvOptions
impl Send for CsvOptions
impl Sync for CsvOptions
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more