pub struct RichTextElementDate {
pub timestamp: u64,
pub format: String,
pub url: Option<String>,
pub fallback: Option<String>,
}Expand description
The following are the properties of the date object type in the elements array.
Fields§
§timestamp: u64A Unix timestamp for the date to be displayed in seconds.
format: StringA template string containing curly-brace-enclosed tokens to substitute your provided timestamp.
url: Option<String>URL to link the entire format string to.
fallback: Option<String>Text to display in place of the date should parsing, formatting or displaying fail.
Trait Implementations§
Source§impl Clone for RichTextElementDate
impl Clone for RichTextElementDate
Source§fn clone(&self) -> RichTextElementDate
fn clone(&self) -> RichTextElementDate
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 RichTextElementDate
impl Debug for RichTextElementDate
Auto Trait Implementations§
impl Freeze for RichTextElementDate
impl RefUnwindSafe for RichTextElementDate
impl Send for RichTextElementDate
impl Sync for RichTextElementDate
impl Unpin for RichTextElementDate
impl UnwindSafe for RichTextElementDate
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