pub struct FieldOptions {
pub separation: Option<String>,
pub nonameprefix: String,
pub empty: Value,
pub names: Option<Vec<String>>,
pub exact: bool,
}Expand description
Field options. See CsvOptions.
Fields§
§separation: Option<String>The field separator, when it is not a comma. May be several
characters ("~~").
nonameprefix: StringThe key prefix for a field beyond the header’s columns: the third
field of a two-column document is field~2.
empty: ValueThe value an empty field takes. Any JSON value; the default is the empty string.
names: Option<Vec<String>>Explicit column names, used in place of a header row.
exact: boolFail the parse with csv_extra_field or csv_missing_field when a
row’s field count differs from the header’s (or from
names.len()). Inert without a known field list.
Trait Implementations§
Source§impl Clone for FieldOptions
impl Clone for FieldOptions
Source§impl Debug for FieldOptions
impl Debug for FieldOptions
Source§impl Default for FieldOptions
impl Default for FieldOptions
Source§impl<'de> Deserialize<'de> for FieldOptionswhere
FieldOptions: Default,
impl<'de> Deserialize<'de> for FieldOptionswhere
FieldOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldOptions
impl PartialEq for FieldOptions
Source§impl Serialize for FieldOptions
impl Serialize for FieldOptions
impl StructuralPartialEq for FieldOptions
Auto Trait Implementations§
impl Freeze for FieldOptions
impl RefUnwindSafe for FieldOptions
impl Send for FieldOptions
impl Sync for FieldOptions
impl Unpin for FieldOptions
impl UnsafeUnpin for FieldOptions
impl UnwindSafe for FieldOptions
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