Struct irox_csv::CSVWriterBuilder
source · pub struct CSVWriterBuilder { /* private fields */ }
Expand description
Helper builder to lazily create a CSVWriter
Implementations§
source§impl CSVWriterBuilder
impl CSVWriterBuilder
sourcepub fn new() -> CSVWriterBuilder
pub fn new() -> CSVWriterBuilder
Start here.
sourcepub fn with_columns<T: ToString>(self, columns: &[T]) -> Self
pub fn with_columns<T: ToString>(self, columns: &[T]) -> Self
Specify a set of Headers to use. Without calling
pub fn with_newlines(self, newlines: String) -> Self
pub fn with_column_separator(self, column_separator: String) -> Self
pub fn build<T: Write + Sized>(self, output: T) -> CSVWriter<T>
Trait Implementations§
source§impl Clone for CSVWriterBuilder
impl Clone for CSVWriterBuilder
source§fn clone(&self) -> CSVWriterBuilder
fn clone(&self) -> CSVWriterBuilder
Returns a copy 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 CSVWriterBuilder
impl Debug for CSVWriterBuilder
source§impl Default for CSVWriterBuilder
impl Default for CSVWriterBuilder
source§fn default() -> CSVWriterBuilder
fn default() -> CSVWriterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CSVWriterBuilder
impl Send for CSVWriterBuilder
impl Sync for CSVWriterBuilder
impl Unpin for CSVWriterBuilder
impl UnwindSafe for CSVWriterBuilder
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