pub enum DatePreference {
DmyFormat,
MdyFormat,
}Expand description
Date format preference for ambiguous date parsing.
Variants§
DmyFormat
Day-Month-Year format (e.g., 31/12/2023).
MdyFormat
Month-Day-Year format (e.g., 12/31/2023).
Implementations§
Trait Implementations§
Source§impl Clone for DatePreference
impl Clone for DatePreference
Source§fn clone(&self) -> DatePreference
fn clone(&self) -> DatePreference
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 DatePreference
impl Debug for DatePreference
Source§impl Default for DatePreference
impl Default for DatePreference
Source§fn default() -> DatePreference
fn default() -> DatePreference
Returns the “default value” for a type. Read more
Source§impl PartialEq for DatePreference
impl PartialEq for DatePreference
impl Copy for DatePreference
impl Eq for DatePreference
impl StructuralPartialEq for DatePreference
Auto Trait Implementations§
impl Freeze for DatePreference
impl RefUnwindSafe for DatePreference
impl Send for DatePreference
impl Sync for DatePreference
impl Unpin for DatePreference
impl UnwindSafe for DatePreference
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