Struct polars_io::csv::SerializeOptions
source · pub struct SerializeOptions {
pub date_format: Option<String>,
pub time_format: Option<String>,
pub datetime_format: Option<String>,
pub float_precision: Option<usize>,
pub separator: u8,
pub quote_char: u8,
pub null: String,
pub line_terminator: String,
pub quote_style: QuoteStyle,
}Available on crate features
csv or json only.Expand description
Options to serialize logical types to CSV.
The default is to format times and dates as chrono crate formats them.
Fields§
§date_format: Option<String>Used for DataType::Date.
time_format: Option<String>Used for DataType::Time.
datetime_format: Option<String>Used for DataType::Datetime.
float_precision: Option<usize>Used for DataType::Float64 and DataType::Float32.
separator: u8Used as separator.
quote_char: u8Quoting character.
null: StringNull value representation.
line_terminator: StringString appended after every row.
quote_style: QuoteStyleTrait Implementations§
source§impl Clone for SerializeOptions
impl Clone for SerializeOptions
source§fn clone(&self) -> SerializeOptions
fn clone(&self) -> SerializeOptions
Returns a copy 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 SerializeOptions
impl Debug for SerializeOptions
source§impl Default for SerializeOptions
impl Default for SerializeOptions
source§impl<'de> Deserialize<'de> for SerializeOptions
impl<'de> Deserialize<'de> for SerializeOptions
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 Hash for SerializeOptions
impl Hash for SerializeOptions
source§impl PartialEq for SerializeOptions
impl PartialEq for SerializeOptions
source§fn 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 ==.source§impl Serialize for SerializeOptions
impl Serialize for SerializeOptions
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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more