Struct dts_core::de::DeserializeOptions
source · [−]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
sourceimpl Clone for DeserializeOptions
impl Clone for DeserializeOptions
sourcefn clone(&self) -> DeserializeOptions
fn clone(&self) -> DeserializeOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DeserializeOptions
impl Debug for DeserializeOptions
sourceimpl Default for DeserializeOptions
impl Default for DeserializeOptions
sourcefn default() -> DeserializeOptions
fn default() -> DeserializeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DeserializeOptions
impl Send for DeserializeOptions
impl Sync for DeserializeOptions
impl Unpin for DeserializeOptions
impl UnwindSafe for DeserializeOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more