pub enum FormattedTimestampStyle {
ShortTime,
LongTime,
ShortDate,
LongDate,
ShortDateTime,
LongDateTime,
RelativeTime,
}
Expand description
Enum representing various styles for formatting time in messages.
Variants§
ShortTime
Represents a short time format, e.g., “12:34 PM”.
LongTime
Represents a long time format, e.g., “12:34:56 PM”.
ShortDate
Represents a short date format, e.g., “2023-11-17”.
LongDate
Represents a long date format, e.g., “November 17, 2023”.
ShortDateTime
Represents a short date and time format, e.g., “November 17, 2023 12:34 PM”.
LongDateTime
Represents a long date and time format, e.g., “Thursday, November 17, 2023 12:34 PM”.
RelativeTime
Represents a relative time format, indicating the time relative to the current moment, e.g., “2 hours ago” or “in 2 hours”.
Trait Implementations§
Source§impl Clone for FormattedTimestampStyle
impl Clone for FormattedTimestampStyle
Source§fn clone(&self) -> FormattedTimestampStyle
fn clone(&self) -> FormattedTimestampStyle
Returns a copy 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 FormattedTimestampStyle
impl Debug for FormattedTimestampStyle
Source§impl Default for FormattedTimestampStyle
impl Default for FormattedTimestampStyle
Source§fn default() -> FormattedTimestampStyle
fn default() -> FormattedTimestampStyle
Returns the “default value” for a type. Read more
Source§impl Display for FormattedTimestampStyle
impl Display for FormattedTimestampStyle
Source§impl FromStr for FormattedTimestampStyle
impl FromStr for FormattedTimestampStyle
Source§impl Hash for FormattedTimestampStyle
impl Hash for FormattedTimestampStyle
Source§impl PartialEq for FormattedTimestampStyle
impl PartialEq for FormattedTimestampStyle
impl Copy for FormattedTimestampStyle
impl Eq for FormattedTimestampStyle
impl StructuralPartialEq for FormattedTimestampStyle
Auto Trait Implementations§
impl Freeze for FormattedTimestampStyle
impl RefUnwindSafe for FormattedTimestampStyle
impl Send for FormattedTimestampStyle
impl Sync for FormattedTimestampStyle
impl Unpin for FormattedTimestampStyle
impl UnwindSafe for FormattedTimestampStyle
Blanket Implementations§
Source§impl<T> ArgumentConvert for Twhere
T: FromStr,
impl<T> ArgumentConvert for Twhere
T: FromStr,
Source§fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Parses a string
s
as a command parameter of this type.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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.