pub struct DsvLanguage {
pub field_separator: char,
pub quote_char: char,
}Expand description
DSV language implementation for the Oaks framework.
Fields§
§field_separator: charField separator, defaults to comma (,).
quote_char: charQuote character, defaults to double quote (").
Implementations§
Source§impl DsvLanguage
impl DsvLanguage
Sourcepub const fn with_separator(self, separator: char) -> Self
pub const fn with_separator(self, separator: char) -> Self
Sets the field separator.
Sourcepub const fn with_quote_char(self, quote: char) -> Self
pub const fn with_quote_char(self, quote: char) -> Self
Sets the quote character.
Trait Implementations§
Source§impl Clone for DsvLanguage
impl Clone for DsvLanguage
Source§fn clone(&self) -> DsvLanguage
fn clone(&self) -> DsvLanguage
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 DsvLanguage
impl Debug for DsvLanguage
Source§impl Default for DsvLanguage
impl Default for DsvLanguage
Source§impl<'de> Deserialize<'de> for DsvLanguage
impl<'de> Deserialize<'de> for DsvLanguage
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 DsvLanguage
impl Hash for DsvLanguage
Source§impl Ord for DsvLanguage
impl Ord for DsvLanguage
Source§fn cmp(&self, other: &DsvLanguage) -> Ordering
fn cmp(&self, other: &DsvLanguage) -> 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 DsvLanguage
impl PartialEq for DsvLanguage
Source§impl PartialOrd for DsvLanguage
impl PartialOrd for DsvLanguage
Source§impl Serialize for DsvLanguage
impl Serialize for DsvLanguage
impl ConstParamTy_ for DsvLanguage
impl Copy for DsvLanguage
impl Eq for DsvLanguage
impl StructuralPartialEq for DsvLanguage
Auto Trait Implementations§
impl Freeze for DsvLanguage
impl RefUnwindSafe for DsvLanguage
impl Send for DsvLanguage
impl Sync for DsvLanguage
impl Unpin for DsvLanguage
impl UnsafeUnpin for DsvLanguage
impl UnwindSafe for DsvLanguage
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