pub struct RichTextMention {
pub kind: String,
pub text: RichText,
pub username: String,
}Expand description
A @username mention.
Fields§
§kind: StringAlways "mention".
text: RichTextThe display text.
username: StringThe target username (without the leading @).
Trait Implementations§
Source§impl Clone for RichTextMention
impl Clone for RichTextMention
Source§fn clone(&self) -> RichTextMention
fn clone(&self) -> RichTextMention
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 RichTextMention
impl Debug for RichTextMention
Source§impl<'de> Deserialize<'de> for RichTextMention
impl<'de> Deserialize<'de> for RichTextMention
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 RichTextMention
impl RefUnwindSafe for RichTextMention
impl Send for RichTextMention
impl Sync for RichTextMention
impl Unpin for RichTextMention
impl UnsafeUnpin for RichTextMention
impl UnwindSafe for RichTextMention
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