pub struct SerializeOptions {
pub date32_format: Option<String>,
pub date64_format: Option<String>,
pub time32_format: Option<String>,
pub time64_format: Option<String>,
pub timestamp_format: Option<String>,
pub delimiter: u8,
pub quote: u8,
}
This is supported on (crate features
io_csv_read
or io_csv_read_async
or io_csv_write
) and crate feature io_csv_write
only.Expand description
Options to serialize logical types to CSV
The default is to format times and dates as chrono
crate formats them.
Fields
date32_format: Option<String>
used for DataType::Date32
date64_format: Option<String>
used for DataType::Date64
time32_format: Option<String>
used for DataType::Time32
time64_format: Option<String>
used for DataType::Time64
timestamp_format: Option<String>
used for DataType::Timestamp
delimiter: u8
used as separator/delimiter
quote: u8
quoting character
Trait Implementations
sourceimpl Clone for SerializeOptions
impl Clone for SerializeOptions
sourcefn clone(&self) -> SerializeOptions
fn clone(&self) -> SerializeOptions
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 SerializeOptions
impl Debug for SerializeOptions
sourceimpl Default for SerializeOptions
impl Default for SerializeOptions
sourcefn default() -> SerializeOptions
fn default() -> SerializeOptions
Returns the “default value” for a type. Read more
sourceimpl Hash for SerializeOptions
impl Hash for SerializeOptions
sourceimpl PartialEq<SerializeOptions> for SerializeOptions
impl PartialEq<SerializeOptions> for SerializeOptions
sourcefn eq(&self, other: &SerializeOptions) -> bool
fn eq(&self, other: &SerializeOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SerializeOptions) -> bool
fn ne(&self, other: &SerializeOptions) -> bool
This method tests for !=
.
impl Eq for SerializeOptions
impl StructuralEq for SerializeOptions
impl StructuralPartialEq for SerializeOptions
Auto Trait Implementations
impl RefUnwindSafe for SerializeOptions
impl Send for SerializeOptions
impl Sync for SerializeOptions
impl Unpin for SerializeOptions
impl UnwindSafe for SerializeOptions
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more