pub enum Serialization {
Text(Delimiters),
Json,
Csv,
}Expand description
Serialization format options.
Variants§
Implementations§
Source§impl Serialization
impl Serialization
Sourcepub fn field_delimiter_display(&self) -> String
pub fn field_delimiter_display(&self) -> String
Get the field delimiter formatted for display, or “n/a” if not text format.
Sourcepub fn entry_delimiter_display(&self) -> String
pub fn entry_delimiter_display(&self) -> String
Get the entry delimiter formatted for display, or “n/a” if not text format.
Trait Implementations§
Source§impl AsRef<Serialization> for Options
impl AsRef<Serialization> for Options
Source§fn as_ref(&self) -> &Serialization
fn as_ref(&self) -> &Serialization
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for Serialization
impl Clone for Serialization
Source§fn clone(&self) -> Serialization
fn clone(&self) -> Serialization
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 Serialization
impl Debug for Serialization
Source§impl Default for Serialization
impl Default for Serialization
Source§impl<'de> Deserialize<'de> for Serialization
impl<'de> Deserialize<'de> for Serialization
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 Display for Serialization
impl Display for Serialization
Source§impl Hash for Serialization
impl Hash for Serialization
Source§impl Ord for Serialization
impl Ord for Serialization
Source§fn cmp(&self, other: &Serialization) -> Ordering
fn cmp(&self, other: &Serialization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Serialization
impl PartialEq for Serialization
Source§impl PartialOrd for Serialization
impl PartialOrd for Serialization
Source§impl Serialize for Serialization
impl Serialize for Serialization
impl Eq for Serialization
impl StructuralPartialEq for Serialization
Auto Trait Implementations§
impl Freeze for Serialization
impl RefUnwindSafe for Serialization
impl Send for Serialization
impl Sync for Serialization
impl Unpin for Serialization
impl UnwindSafe for Serialization
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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