pub enum Format {
Custom(CustomFormat),
Unix,
Raw,
}
Expand description
Various ways to describe a time format.
Variants§
Custom(CustomFormat)
A custom format limited to what’s in the format
submodule.
Unix
The seconds since 1970, also known as unix epoch, like 1660874655
.
Raw
The seconds since 1970, followed by the offset, like 1660874655 +0800
Trait Implementations§
Source§impl From<CustomFormat> for Format
impl From<CustomFormat> for Format
Source§fn from(custom_format: CustomFormat) -> Format
fn from(custom_format: CustomFormat) -> Format
Converts to this type from the input type.
impl Copy for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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