pub struct MentionEntity {
pub id: u64,
pub range: (usize, usize),
pub name: String,
pub screen_name: String,
}Expand description
Represnts a user mention extracted from another piece of text.
Fields§
§id: u64Numeric ID of the mentioned user.
range: (usize, usize)The byte offsets where the user mention is located in the original text. The first index is the location of the @ symbol; the second is the location of the first character following the user screen name.
name: StringDisplay name of the mentioned user.
screen_name: StringScreen name of the mentioned user, without the leading @ symbol.
Trait Implementations§
Source§impl Clone for MentionEntity
impl Clone for MentionEntity
Source§fn clone(&self) -> MentionEntity
fn clone(&self) -> MentionEntity
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 MentionEntity
impl Debug for MentionEntity
Source§impl<'de> Deserialize<'de> for MentionEntity
impl<'de> Deserialize<'de> for MentionEntity
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 MentionEntity
impl RefUnwindSafe for MentionEntity
impl Send for MentionEntity
impl Sync for MentionEntity
impl Unpin for MentionEntity
impl UnwindSafe for MentionEntity
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