Enum polars_io::csv::QuoteStyle
source · pub enum QuoteStyle {
Always,
Necessary,
NonNumeric,
Never,
}Available on crate features
csv or json only.Variants§
Always
This puts quotes around every field. Always.
Necessary
This puts quotes around fields only when necessary.
NonNumeric
This puts quotes around all fields that are non-numeric. Namely, when writing a field that does not parse as a valid float or integer, then quotes will be used even if they aren’t strictly necessary.
Never
Never quote any fields, even if it would produce invalid CSV data.
Trait Implementations§
source§impl Clone for QuoteStyle
impl Clone for QuoteStyle
source§fn clone(&self) -> QuoteStyle
fn clone(&self) -> QuoteStyle
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 QuoteStyle
impl Debug for QuoteStyle
source§impl Default for QuoteStyle
impl Default for QuoteStyle
source§fn default() -> QuoteStyle
fn default() -> QuoteStyle
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for QuoteStyle
impl<'de> Deserialize<'de> for QuoteStyle
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 QuoteStyle
impl Hash for QuoteStyle
source§impl PartialEq for QuoteStyle
impl PartialEq for QuoteStyle
source§fn eq(&self, other: &QuoteStyle) -> bool
fn eq(&self, other: &QuoteStyle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for QuoteStyle
impl Serialize for QuoteStyle
impl Copy for QuoteStyle
impl Eq for QuoteStyle
impl StructuralEq for QuoteStyle
impl StructuralPartialEq for QuoteStyle
Auto Trait Implementations§
impl RefUnwindSafe for QuoteStyle
impl Send for QuoteStyle
impl Sync for QuoteStyle
impl Unpin for QuoteStyle
impl UnwindSafe for QuoteStyle
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