pub struct Dialect {
    pub delimiter: u8,
    pub header: Header,
    pub quote: Quote,
    pub flexible: bool,
}
Expand description

Dialect-level metadata. This type encapsulates the details to be used to derive a ReaderBuilder object (in the csv crate).

Fields

delimiter: u8

CSV delimiter (field separator).

header: Header

Header subtype (header row boolean and number of preamble rows).

quote: Quote

Record quoting details.

flexible: bool

Whether or not the number of fields in a record is allowed to change.

Implementations

Use this Dialect to open a file specified by provided path. Returns a Reader (from the csv crate). Fails on file opening or reading errors.

Use this Dialect to create a Reader (from the csv crate) using the provided reader. Fails if unable to read from the reader.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.