pub struct TextMention {
pub text_block: TextBlock,
pub user: User,
}Expand description
For users without usernames
Fields§
§text_block: TextBlockThe part of the text that is the mention
user: UserThe mentioned user
Trait Implementations§
Source§impl Clone for TextMention
impl Clone for TextMention
Source§fn clone(&self) -> TextMention
fn clone(&self) -> TextMention
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 TextMention
impl Debug for TextMention
Source§impl<'de> Deserialize<'de> for TextMention
impl<'de> Deserialize<'de> for TextMention
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
Source§impl PartialEq for TextMention
impl PartialEq for TextMention
Source§impl Serialize for TextMention
impl Serialize for TextMention
impl StructuralPartialEq for TextMention
Auto Trait Implementations§
impl Freeze for TextMention
impl RefUnwindSafe for TextMention
impl Send for TextMention
impl Sync for TextMention
impl Unpin for TextMention
impl UnsafeUnpin for TextMention
impl UnwindSafe for TextMention
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