Enum twitter_stream::message::StreamMessage [] [src]

pub enum StreamMessage {
    Tweet(Box<Tweet>),
    Event(Box<Event>),
    Delete(Delete),
    ScrubGeo(ScrubGeo),
    Limit(Limit),
    StatusWithheld(StatusWithheld),
    UserWithheld(UserWithheld),
    Disconnect(Disconnect),
    Warning(Warning),
    Friends(Friends),
    DirectMessage(Box<DirectMessage>),
    Control(Control),
    ForUser(UserIdBox<StreamMessage>),
    Custom(JsonMap<String, JsonValue>),
}

Represents a message from Twitter Streaming API.

Reference

  1. Streaming message types — Twitter Developers

Variants

Tweet

Notifications about non-Tweet events.

Indicate that a given Tweet has been deleted.

Indicate that geolocated data must be stripped from a range of Tweets.

Indicate that a filtered stream has matched more Tweets than its current rate limit allows to be delivered, noticing a total count of the number of undelivered Tweets since the connection was opened.

Indicate that a given tweet has had its content withheld.

Indicate that a user has had their content withheld.

This message is sent when a stream is disconnected, indicating why the stream was closed.

Variout warning message

List of the user's friends. Only be sent upon establishing a User Stream connection.

Direct message

A control URI for Site Streams.

An envelope for Site Stream.

A message not known to this library.

Trait Implementations

impl Clone for StreamMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StreamMessage
[src]

Formats the value using the given formatter.

impl PartialEq for StreamMessage
[src]

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

This method tests for !=.

impl<'x> Deserialize<'x> for StreamMessage
[src]

Deserialize this value from the given Serde deserializer. Read more