pub struct TableOptions {
pub types: TableTypes,
pub delimiter: char,
pub header: bool,
pub columns: TableColumns,
}Expand description
Options for table-shaped formats (csv today; spreadsheet formats later).
Fields§
§types: TableTypes§delimiter: charDelimiter splitting arr:<type> value cells.
header: boolWhether the first row is a header. Default false: rows are read
positionally as key,value[,format] — the format column may be
omitted entirely or left empty per row, in which case the value is
auto-detected. With header: true the columns are located by name
(file column order is free).
columns: TableColumnsColumn names, matched against the header row (only used when
header is true).
Trait Implementations§
Source§impl Clone for TableOptions
impl Clone for TableOptions
Source§fn clone(&self) -> TableOptions
fn clone(&self) -> TableOptions
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 TableOptions
impl Debug for TableOptions
Source§impl Default for TableOptions
impl Default for TableOptions
Source§impl PartialEq for TableOptions
impl PartialEq for TableOptions
Source§fn eq(&self, other: &TableOptions) -> bool
fn eq(&self, other: &TableOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableOptions
Auto Trait Implementations§
impl Freeze for TableOptions
impl RefUnwindSafe for TableOptions
impl Send for TableOptions
impl Sync for TableOptions
impl Unpin for TableOptions
impl UnsafeUnpin for TableOptions
impl UnwindSafe for TableOptions
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