pub enum LineFormat {
Jsonl,
Csv {
header: bool,
options: Box<CsvOptions>,
},
}Expand description
The line-delimited format to read.
Variants§
Jsonl
One JSON value per line; blank lines are skipped.
Csv
CSV records. header says whether the first record names the
fields (it overrides options.header); the other options are the
grammar’s (object: false for arrays instead of objects, and so
on), boxed because they are large and the format is passed around.
Implementations§
Source§impl LineFormat
impl LineFormat
Sourcepub fn csv() -> LineFormat
pub fn csv() -> LineFormat
CSV with a header line and the grammar’s default options.
Sourcepub fn csv_with(header: bool, options: CsvOptions) -> LineFormat
pub fn csv_with(header: bool, options: CsvOptions) -> LineFormat
CSV with the given options; header decides whether the first
record names the fields.
Trait Implementations§
Source§impl Clone for LineFormat
impl Clone for LineFormat
Auto Trait Implementations§
impl !RefUnwindSafe for LineFormat
impl !UnwindSafe for LineFormat
impl Freeze for LineFormat
impl Send for LineFormat
impl Sync for LineFormat
impl Unpin for LineFormat
impl UnsafeUnpin for LineFormat
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