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(UserId, Box<StreamMessage>),
Custom(JsonMap<String, JsonValue>),
}Represents a message from Twitter Streaming API.
Reference
Variants
Tweet(Box<Tweet>)Tweet
Event(Box<Event>)Notifications about non-Tweet events.
Delete(Delete)Indicate that a given Tweet has been deleted.
ScrubGeo(ScrubGeo)Indicate that geolocated data must be stripped from a range of Tweets.
Limit(Limit)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.
StatusWithheld(StatusWithheld)Indicate that a given tweet has had its content withheld.
UserWithheld(UserWithheld)Indicate that a user has had their content withheld.
Disconnect(Disconnect)This message is sent when a stream is disconnected, indicating why the stream was closed.
Warning(Warning)Variout warning message
Friends(Friends)List of the user's friends. Only be sent upon establishing a User Stream connection.
DirectMessage(Box<DirectMessage>)Direct message
Control(Control)A control URI for Site Streams.
ForUser(UserId, Box<StreamMessage>)An envelope for Site Stream.
Custom(JsonMap<String, JsonValue>)A message not known to this library.
Trait Implementations
impl Clone for StreamMessage[src]
fn clone(&self) -> StreamMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for StreamMessage[src]
impl PartialEq for StreamMessage[src]
fn eq(&self, __arg_0: &StreamMessage) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StreamMessage) -> bool
This method tests for !=.
impl Deserialize for StreamMessage[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: Deserializer
Deserialize this value from the given Serde deserializer. Read more