pub struct RichTextDateTime {
pub text: RichText,
pub unix_time: i64,
pub date_time_format: String,
}Expand description
A date/time entity rendered according to the client’s locale.
Fields§
§text: RichTextThe display text.
unix_time: i64The Unix timestamp associated with the entity.
date_time_format: StringFormat string controlling how the date/time is rendered.
Trait Implementations§
Source§impl Clone for RichTextDateTime
impl Clone for RichTextDateTime
Source§fn clone(&self) -> RichTextDateTime
fn clone(&self) -> RichTextDateTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RichTextDateTime
impl Debug for RichTextDateTime
Source§impl<'de> Deserialize<'de> for RichTextDateTime
impl<'de> Deserialize<'de> for RichTextDateTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RichTextDateTime
impl RefUnwindSafe for RichTextDateTime
impl Send for RichTextDateTime
impl Sync for RichTextDateTime
impl Unpin for RichTextDateTime
impl UnsafeUnpin for RichTextDateTime
impl UnwindSafe for RichTextDateTime
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