pub struct UserMention<'a> {
pub id: UserId,
pub indices: (u64, u64),
pub name: Cow<'a, str>,
pub screen_name: Cow<'a, str>,
}Expand description
Represents a user in user_mentions field of Entities.
Fields§
§id: UserIdID of the mentioned user, as an integer.
indices: (u64, u64)A pair of integers representing the offsets within the Tweet text where the user reference begins and ends. The first integer represents the location of the ‘@’ character of the user mention. The second integer represents the location of the first non-screenname character following the user mention.
name: Cow<'a, str>Display name of the referenced user.
screen_name: Cow<'a, str>Screen name of the referenced user.
Trait Implementations§
Source§impl<'a> Clone for UserMention<'a>
impl<'a> Clone for UserMention<'a>
Source§fn clone(&self) -> UserMention<'a>
fn clone(&self) -> UserMention<'a>
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<'a> Debug for UserMention<'a>
impl<'a> Debug for UserMention<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for UserMention<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UserMention<'a>
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<'a> Hash for UserMention<'a>
impl<'a> Hash for UserMention<'a>
Source§impl<'a> PartialEq for UserMention<'a>
impl<'a> PartialEq for UserMention<'a>
impl<'a> Eq for UserMention<'a>
impl<'a> StructuralPartialEq for UserMention<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserMention<'a>
impl<'a> RefUnwindSafe for UserMention<'a>
impl<'a> Send for UserMention<'a>
impl<'a> Sync for UserMention<'a>
impl<'a> Unpin for UserMention<'a>
impl<'a> UnwindSafe for UserMention<'a>
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