pub enum TimestampStyle {
ShortTime,
LongTime,
ShortDate,
LongDate,
ShortDateTime,
LongDateTime,
Relative,
}Expand description
Discord Timestamp formatting styles.
Variants§
ShortTime
Short Time (e.g. 16:20)
LongTime
Long Time (e.g. 16:20:30)
ShortDate
Short Date (e.g. 20/04/2021)
LongDate
Long Date (e.g. 20 April 2021)
ShortDateTime
Short Date/Time (e.g. 20 April 2021 16:20)
LongDateTime
Long Date/Time (e.g. Tuesday, 20 April 2021 16:20)
Relative
Relative Time (e.g. 2 months ago)
Implementations§
Trait Implementations§
Source§impl Clone for TimestampStyle
impl Clone for TimestampStyle
Source§fn clone(&self) -> TimestampStyle
fn clone(&self) -> TimestampStyle
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 TimestampStyle
impl Debug for TimestampStyle
Source§impl PartialEq for TimestampStyle
impl PartialEq for TimestampStyle
impl Copy for TimestampStyle
impl StructuralPartialEq for TimestampStyle
Auto Trait Implementations§
impl Freeze for TimestampStyle
impl RefUnwindSafe for TimestampStyle
impl Send for TimestampStyle
impl Sync for TimestampStyle
impl Unpin for TimestampStyle
impl UnwindSafe for TimestampStyle
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