pub struct RichTextTextMention {
pub text: RichText,
pub user: User,
}Expand description
A mention of a Telegram user by their User object.
Fields§
§text: RichTextThe display text.
user: UserThe mentioned user.
Trait Implementations§
Source§impl Clone for RichTextTextMention
impl Clone for RichTextTextMention
Source§fn clone(&self) -> RichTextTextMention
fn clone(&self) -> RichTextTextMention
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 RichTextTextMention
impl Debug for RichTextTextMention
Source§impl<'de> Deserialize<'de> for RichTextTextMention
impl<'de> Deserialize<'de> for RichTextTextMention
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 RichTextTextMention
impl RefUnwindSafe for RichTextTextMention
impl Send for RichTextTextMention
impl Sync for RichTextTextMention
impl Unpin for RichTextTextMention
impl UnsafeUnpin for RichTextTextMention
impl UnwindSafe for RichTextTextMention
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