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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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