Struct arrow::csv::writer::WriterBuilder[][src]

pub struct WriterBuilder { /* fields omitted */ }
Expand description

A CSV writer builder

Implementations

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
}

Set whether to write headers

Set the CSV file’s column delimiter as a byte character

Set the CSV file’s date format

Set the CSV file’s time format

Set the CSV file’s timestamp format

Create a new Writer

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.