pub enum DateFormat {
ISO,
US,
USDash,
EU,
EUDash,
EUDot,
Long,
ShortYear,
Compact,
Unix,
ExcelSerial,
}Expand description
Date format variations.
Variants§
ISO
ISO 8601: 2024-01-15
US
US format: 01/15/2024
USDash
US with dashes: 01-15-2024
EU
European: 15/01/2024
EUDash
European with dashes: 15-01-2024
EUDot
European with dots: 15.01.2024
Long
Long format: January 15, 2024
ShortYear
Short year: 01/15/24
Compact
Compact: 20240115
Unix
Unix timestamp
ExcelSerial
Excel serial number
Implementations§
Trait Implementations§
Source§impl Clone for DateFormat
impl Clone for DateFormat
Source§fn clone(&self) -> DateFormat
fn clone(&self) -> DateFormat
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 DateFormat
impl Debug for DateFormat
Source§impl PartialEq for DateFormat
impl PartialEq for DateFormat
impl Copy for DateFormat
impl StructuralPartialEq for DateFormat
Auto Trait Implementations§
impl Freeze for DateFormat
impl RefUnwindSafe for DateFormat
impl Send for DateFormat
impl Sync for DateFormat
impl Unpin for DateFormat
impl UnwindSafe for DateFormat
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