pub struct CsvConfig {Show 15 fields
pub delimiter: char,
pub quote: char,
pub quote_mode: QuoteMode,
pub double_quote: bool,
pub escape: Option<char>,
pub record_separator: RecordSeparator,
pub comment_marker: Option<char>,
pub null_string: Option<String>,
pub headers: Option<Vec<String>>,
pub has_headers: bool,
pub skip_header_record: bool,
pub capture_header_record: bool,
pub ignore_surrounding_spaces: bool,
pub trim: bool,
pub use_maps: bool,
}Fields§
§delimiter: char§quote: char§quote_mode: QuoteMode§double_quote: bool§escape: Option<char>§record_separator: RecordSeparator§comment_marker: Option<char>§null_string: Option<String>§headers: Option<Vec<String>>§has_headers: bool§skip_header_record: bool§capture_header_record: bool§ignore_surrounding_spaces: bool§trim: bool§use_maps: boolImplementations§
Source§impl CsvConfig
impl CsvConfig
pub fn excel() -> Self
pub fn tdf() -> Self
pub fn mysql() -> Self
pub fn delimiter(self, c: char) -> Self
pub fn quote(self, c: char) -> Self
pub fn quote_mode(self, m: QuoteMode) -> Self
pub fn double_quote(self, b: bool) -> Self
pub fn escape(self, c: Option<char>) -> Self
pub fn record_separator(self, s: RecordSeparator) -> Self
pub fn comment_marker(self, c: Option<char>) -> Self
pub fn null_string(self, s: Option<String>) -> Self
pub fn headers(self, h: Vec<String>) -> Self
pub fn has_headers(self, b: bool) -> Self
pub fn skip_header_record(self, b: bool) -> Self
pub fn capture_header_record(self, b: bool) -> Self
pub fn ignore_surrounding_spaces(self, b: bool) -> Self
pub fn trim(self, b: bool) -> Self
pub fn use_maps(self, b: bool) -> Self
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