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

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>>,
}

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

Collection of hashtags parsed from the tweet.

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

Collection of URLs parsed from the tweet.

Collection of user mentions parsed from the tweet.

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

Trait Implementations

impl Debug for TweetEntities
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TweetEntities

impl Sync for TweetEntities

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.