pub enum DateFormat {
Iso8601,
DotShort,
DotWide,
}Expand description
Controls the output format of a date
Variants§
Iso8601
ISO-8601 format
DotShort
Y.M.D[.H] where month, day, and hour don’t have zero padding
DotWide
Y.M.D[.H] where month, day, and hour are zero padded to two digits
Trait Implementations§
Source§impl Clone for DateFormat
impl Clone for DateFormat
impl Copy for DateFormat
Source§impl Debug for DateFormat
impl Debug for DateFormat
impl Eq for DateFormat
Source§impl PartialEq for DateFormat
impl PartialEq 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 UnsafeUnpin 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