pub struct CsvWriteOptions {
pub delimiter: u8,
pub na_rep: String,
pub header: bool,
pub include_index: bool,
pub index_label: Option<String>,
}Expand description
Options controlling CSV serialization.
Mirrors the subset of pandas DataFrame.to_csv parameters that do
not depend on file IO (that layer is handled by write_csv).
Fields§
§delimiter: u8Field delimiter. Matches pandas sep. Default: ,.
na_rep: StringString written for missing values. Matches pandas na_rep. Default: "".
header: boolIf false, the header row is omitted. Matches pandas header=False.
include_index: boolIf true, include the index as the first column. Matches pandas index.
index_label: Option<String>Optional label for the index column header. Matches pandas index_label.
When omitted, a named index uses its name and an unnamed index writes an
empty header cell.
Trait Implementations§
Source§impl Clone for CsvWriteOptions
impl Clone for CsvWriteOptions
Source§fn clone(&self) -> CsvWriteOptions
fn clone(&self) -> CsvWriteOptions
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 CsvWriteOptions
impl Debug for CsvWriteOptions
Auto Trait Implementations§
impl Freeze for CsvWriteOptions
impl RefUnwindSafe for CsvWriteOptions
impl Send for CsvWriteOptions
impl Sync for CsvWriteOptions
impl Unpin for CsvWriteOptions
impl UnsafeUnpin for CsvWriteOptions
impl UnwindSafe for CsvWriteOptions
Blanket Implementations§
impl<T> Allocation for T
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