pub struct CsvOptions {
pub columns: Vec<CsvColumn>,
pub header: bool,
pub network: Network,
}Expand description
Options for CSV export.
Fields§
§columns: Vec<CsvColumn>Columns to include
header: boolInclude header row
network: NetworkNetwork for export
Implementations§
Source§impl CsvOptions
impl CsvOptions
Sourcepub fn with_columns(self, columns: Vec<CsvColumn>) -> Self
pub fn with_columns(self, columns: Vec<CsvColumn>) -> Self
Set columns.
Sourcepub fn with_header(self, header: bool) -> Self
pub fn with_header(self, header: bool) -> Self
Set header option.
Sourcepub fn with_network(self, network: Network) -> Self
pub fn with_network(self, network: Network) -> Self
Set network.
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
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