[][src]Struct egg_mode::direct::DirectMessage

pub struct DirectMessage {
    pub id: u64,
    pub created_at: DateTime<Utc>,
    pub text: String,
    pub entities: DMEntities,
    pub sender_screen_name: String,
    pub sender_id: u64,
    pub sender: Box<TwitterUser>,
    pub recipient_screen_name: String,
    pub recipient_id: u64,
    pub recipient: Box<TwitterUser>,
}
👎 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

Represents a single direct message.

As a DM has far less metadata than a regular tweet, the structure consequently contains far fewer fields. The basic fields are id, text, entities, and created_at; everything else either refers to the sender or receiver in some manner.

Fields

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

Numeric ID for this DM.

created_at: DateTime<Utc>
👎 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

UTC timestamp from when this DM was created.

text: String
👎 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

The text of the DM.

entities: DMEntities
👎 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

Link, hashtag, and user mention information parsed out of the DM.

sender_screen_name: String
👎 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

The screen name of the user who sent the DM.

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

The ID of the user who sent the DM.

sender: Box<TwitterUser>
👎 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

Full information of the user who sent the DM.

recipient_screen_name: String
👎 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

The screen name of the user who received the DM.

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

The ID of the user who received the DM.

recipient: Box<TwitterUser>
👎 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

Full information for the user who received the DM.

Trait Implementations

impl Debug for DirectMessage[src]

impl<'de> Deserialize<'de> for DirectMessage[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>,