[][src]Struct egg_mode::direct::DMEntities

pub struct DMEntities {
    pub hashtags: Vec<HashtagEntity>,
    pub symbols: Vec<HashtagEntity>,
    pub urls: Vec<UrlEntity>,
    pub user_mentions: Vec<MentionEntity>,
    pub media: Option<Vec<MediaEntity>>,
}
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

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

As far as entities are concerned, a DM can contain nearly everything a tweet can. The only thing that isn't present here is the "extended media" that would be on the tweet's extended_entities field. A user can attach a single picture to a DM via the Twitter website or official apps, so if that is present, it will be available in media. (Note that the functionality to send pictures through a DM is unavailable on the public API; only viewing them is possible.)

For all other fields, if the message contains no hashtags, financial symbols ("cashtags"), links, or mentions, those corresponding fields will still be present, just empty.

Fields

hashtags: Vec<HashtagEntity>
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

Collection of hashtags parsed from the DM.

symbols: Vec<HashtagEntity>
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

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

urls: Vec<UrlEntity>
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

Collection of URLs parsed from the DM.

user_mentions: Vec<MentionEntity>
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

Collection of user mentions parsed from the DM.

media: Option<Vec<MediaEntity>>
👎 Deprecated since 0.15:

the direct message endpoints used in this module are no longer in service, and this module has not been migrated over to the DM Events API

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

Trait Implementations

impl Debug for DMEntities[src]

impl<'de> Deserialize<'de> for DMEntities[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,