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: u64

Numeric 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: String

Display name of the mentioned user.

screen_name: String

Screen name of the mentioned user, without the leading @ symbol.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.