Enum csv::QuoteStyle [] [src]

pub enum QuoteStyle {
    Always,
    Necessary,
    Never,
}

The quoting style to use when writing CSV data.

Variants

Always

This puts quotes around every field. Always.

Necessary

This puts quotes around fields only when necessary.

They are necessary when fields are empty or contain a quote, delimiter or record terminator.

This is the default.

Never

This never writes quotes.

If a field requires quotes, then the writer will report an error.

Trait Implementations

Derived Implementations

impl Copy for QuoteStyle

impl Clone for QuoteStyle

fn clone(&self) -> QuoteStyle

fn clone_from(&mut self, source: &Self)