Struct egg_mode::entities::MentionEntity [−][src]
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
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 RefUnwindSafe for MentionEntityimpl Send for MentionEntityimpl Sync for MentionEntityimpl Unpin for MentionEntityimpl UnwindSafe for MentionEntityBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V