Struct egg_mode::tweet::TweetEntities[][src]

pub struct TweetEntities {
    pub hashtags: Vec<HashtagEntity>,
    pub symbols: Vec<HashtagEntity>,
    pub urls: Vec<UrlEntity>,
    pub user_mentions: Vec<MentionEntity>,
    pub media: Option<Vec<MediaEntity>>,
}
Expand description

Container for URL, hashtag, mention, and media information associated with a tweet.

If a tweet has no hashtags, financial symbols (“cashtags”), links, or mentions, those respective Vecs will be empty. If there is no media attached to the tweet, that field will be None.

Note that for media attached to a tweet, this struct will only contain the first image of a photo set, or a thumbnail of a video or GIF. Full media information is available in the tweet’s extended_entities field.

Fields

hashtags: Vec<HashtagEntity>

Collection of hashtags parsed from the tweet.

symbols: Vec<HashtagEntity>

Collection of financial symbols, or “cashtags”, parsed from the tweet.

urls: Vec<UrlEntity>

Collection of URLs parsed from the tweet.

user_mentions: Vec<MentionEntity>

Collection of user mentions parsed from the tweet.

media: Option<Vec<MediaEntity>>

If the tweet contains any attached media, this contains a collection of media information from the tweet.

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.