Struct arrow::csv::writer::WriterBuilder [−][src]
pub struct WriterBuilder { /* fields omitted */ }
Expand description
A CSV writer builder
Implementations
impl WriterBuilder
[src]
impl WriterBuilder
[src]pub fn new() -> Self
[src]
pub fn new() -> Self
[src]Create a new builder for configuring CSV writing options.
To convert a builder into a writer, call WriterBuilder::build
Example
extern crate arrow; use arrow::csv; use std::fs::File; fn example() -> csv::Writer<File> { let file = File::create("target/out.csv").unwrap(); // create a builder that doesn't write headers let builder = csv::WriterBuilder::new().has_headers(false); let writer = builder.build(file); writer }
pub fn has_headers(self, has_headers: bool) -> Self
[src]
pub fn has_headers(self, has_headers: bool) -> Self
[src]Set whether to write headers
pub fn with_delimiter(self, delimiter: u8) -> Self
[src]
pub fn with_delimiter(self, delimiter: u8) -> Self
[src]Set the CSV file’s column delimiter as a byte character
pub fn with_date_format(self, format: String) -> Self
[src]
pub fn with_date_format(self, format: String) -> Self
[src]Set the CSV file’s date format
pub fn with_time_format(self, format: String) -> Self
[src]
pub fn with_time_format(self, format: String) -> Self
[src]Set the CSV file’s time format
pub fn with_timestamp_format(self, format: String) -> Self
[src]
pub fn with_timestamp_format(self, format: String) -> Self
[src]Set the CSV file’s timestamp format
Trait Implementations
impl Debug for WriterBuilder
[src]
impl Debug for WriterBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for WriterBuilder
impl Send for WriterBuilder
impl Sync for WriterBuilder
impl Unpin for WriterBuilder
impl UnwindSafe for WriterBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,