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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)