Struct twitter_stream::tweet::Tweet [] [src]

pub struct Tweet {
    pub coordinates: Option<Geometry>,
    pub created_at: DateTime,
    pub entities: Entities,
    pub favorite_count: Option<u64>,
    pub favorited: Option<bool>,
    pub filter_level: Option<FilterLevel>,
    pub id: StatusId,
    pub in_reply_to_screen_name: Option<String>,
    pub in_reply_to_status_id: Option<StatusId>,
    pub in_reply_to_user_id: Option<UserId>,
    pub is_quote_status: bool,
    pub lang: Option<String>,
    pub place: Option<Place>,
    pub possibly_sensitive: Option<bool>,
    pub quoted_status_id: Option<StatusId>,
    pub quoted_status: Option<Box<Tweet>>,
    pub scopes: Option<HashMap<String, JsonValue>>,
    pub retweet_count: u64,
    pub retweeted: bool,
    pub retweeted_status: Option<Box<Tweet>>,
    pub source: String,
    pub text: String,
    pub truncated: bool,
    pub user: User,
    pub withheld_copyright: bool,
    pub withheld_in_countries: Vec<String>,
    pub withheld_scope: Option<WithheldScope>,
}

Fields

Represents the geographic location of this Tweet as reported by the user or client application.

UTC time when this Tweet was created.

Entities which have been parsed out of the text of the Tweet.

Indicates approximately how many times this Tweet has been liked by Twitter users.

Perspectival Indicates whether this Tweet has been liked by the authenticating user.

Indicates the maximum value of the filter_level parameter which may be used and still stream this Tweet. So a value of Medium will be streamed on None, Low, and Medium streams.

The integer representation of the unique identifier for this Tweet.

If the represented Tweet is a reply, this field will contain the screen name of the original Tweet’s author.

If the represented Tweet is a reply, this field will contain the integer representation of the original Tweet’s ID.

If the represented Tweet is a reply, this field will contain the integer representation of the original Tweet’s author ID. This will not necessarily always be the user directly mentioned in the Tweet.

When present, indicates a BCP 47 language identifier corresponding to the machine-detected language of the Tweet text, or und if no language could be detected.

When present, indicates that the tweet is associated (but not necessarily originating from) a Place.

This field only surfaces when a Tweet contains a link. The meaning of the field doesn’t pertain to the Tweet content itself, but instead it is an indicator that the URL contained in the Tweet may contain content or media identified as sensitive content.

This field only surfaces when the Tweet is a quote Tweet. This field contains the integer value Tweet ID of the quoted Tweet.

This field only surfaces when the Tweet is a quote Tweet. This attribute contains the Tweet object of the original Tweet that was quoted.

A set of key-value pairs indicating the intended contextual delivery of the containing Tweet. Currently used by Twitter’s Promoted Products.

Number of times this Tweet has been retweeted.

Perspectival Indicates whether this Tweet has been retweeted by the authenticating user.

Users can amplify the broadcast of Tweets authored by other users by retweeting. Retweets can be distinguished from typical Tweets by the existence of a retweeted_status attribute. This attribute contains a representation of the original Tweet that was retweeted.

Note that retweets of retweets do not show representations of the intermediary retweet, but only the original Tweet. (Users can also unretweet a retweet they created by deleting their retweet.)

Utility used to post the Tweet, as an HTML-formatted string. Tweets from the Twitter website have a source value of web.

The actual UTF-8 text of the status update. See twitter-text for details on what is currently considered valid characters.

Indicates whether the value of the text parameter was truncated, for example, as a result of a retweet exceeding the 140 character Tweet length. Truncated text will end in ellipsis, like this ...

Since Twitter now rejects long Tweets vs truncating them, the large majority of Tweets will have this set to false.

Note that while native retweets may have their toplevel text property shortened, the original text will be available under the retweeted_status object and the truncated parameter will be set to the value of the original status (in most cases, false).

The user who posted this Tweet. Perspectival attributes embedded within this object are unreliable.

When set to true, it indicates that this piece of content has been withheld due to a DMCA complaint.

When present, indicates a list of uppercase two-letter country codes this content is withheld from. Twitter supports the following non-country values for this field:

  • XX - Content is withheld in all countries
  • XY - Content is withheld due to a DMCA request.

When present, indicates whether the content being withheld is the Status or a User.

Trait Implementations

impl Clone for Tweet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Tweet
[src]

Formats the value using the given formatter.

impl PartialEq for Tweet
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.