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

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

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

Numeric ID for this DM.

UTC timestamp from when this DM was created.

The text of the DM.

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

The screen name of the user who sent the DM.

The ID of the user who sent the DM.

Full information of the user who sent the DM.

The screen name of the user who received the DM.

The ID of the user who received the DM.

Full information for the user who received the DM.