pub struct DeserializeOptions {
pub csv_without_headers: bool,
pub csv_headers_as_keys: bool,
pub csv_delimiter: Option<u8>,
pub text_split_pattern: Option<Regex>,
}Expand description
Options for the Deserializer. The options are context specific and may only be honored when
deserializing from a certain Encoding.
Fields§
§csv_without_headers: boolIndicates that an input CSV does not include a header line. If false, the first line is
discarded.
csv_headers_as_keys: boolIndicates that the header fields of an input CSV should be used as keys for each row’s columns. This means that the deserialized row data will be of type object. Otherwise row data will be of type array.
csv_delimiter: Option<u8>Optional custom delimiter for CSV input.
text_split_pattern: Option<Regex>Optional regex pattern to split text input at.
Implementations§
Trait Implementations§
Source§impl Clone for DeserializeOptions
impl Clone for DeserializeOptions
Source§fn clone(&self) -> DeserializeOptions
fn clone(&self) -> DeserializeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeserializeOptions
impl Debug for DeserializeOptions
Source§impl Default for DeserializeOptions
impl Default for DeserializeOptions
Source§fn default() -> DeserializeOptions
fn default() -> DeserializeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeserializeOptions
impl RefUnwindSafe for DeserializeOptions
impl Send for DeserializeOptions
impl Sync for DeserializeOptions
impl Unpin for DeserializeOptions
impl UnwindSafe for DeserializeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more