Enum twitter_stream::message::EventKind [] [src]

pub enum EventKind {
    Favorite(Box<Tweet>),
    Unfavorite(Box<Tweet>),
    ListCreated(Box<List>),
    ListDestroyed(Box<List>),
    ListUpdated(Box<List>),
    ListMemberAdded(Box<List>),
    ListMemberRemoved(Box<List>),
    ListUserSubscribed(Box<List>),
    ListUserUnsubscribed(Box<List>),
    QuotedTweet(Box<Tweet>),
    AccessRevoked,
    Block,
    Unblock,
    Follow,
    Unfollow,
    UserUpdate,
    Custom(StringOption<JsonValue>),
}

An object which indicates the name of an event. It may contain an object called "target object" which represents the target of the event.

The meaning of target and source field of an Event will be different based on the name of the event, as described below.

Description Event Name source target
User deauthorizes stream AccessRevoked Deauthorizing user App owner
User blocks someone Block Current user Blocked user
User removes a block Unblock Current user Unblocked user
User favorites a Tweet Favorite Current user Tweet author
User's Tweet is favorited Favorite Favoriting user Current user
User unfavorites a Tweet Unfavorite Current user Tweet author
User's Tweet is unfavorited Unfavorite Unfavoriting user Current user
User follows someone Follow Current user Followed user
User is followed Follow Following user Current user
User unfollows someone Unfollow Current user Followed user
User creates a list ListCreated Current user Current user
User deletes a list ListDestroyed Current user Current user
User edits a list ListUpdated Current user Current user
User adds someone to a list ListMemberAdded Current user Added user
User is added to a list ListMemberAdded Adding user Current user
User removes someone from a list ListMemberRemoved Current user Removed user
User is removed from a list ListMemberRemoved Removing user Current user
User subscribes to a list ListUserSubscribed Current user List owner
User's list is subscribed to ListUserSubscribed Subscribing user Current user
User unsubscribes from a list ListUserUnsubscribed Current user List owner
User's list is unsubscribed from ListUserUnsubscribed Unsubscribing user Current user
User's Tweet is quoted QuotedTweet quoting User Current User
User updates their profile UserUpdate Current user Current user
User updates their protected status UserUpdate Current user Current user

Variants

An event this library does not know. The first value is raw event name and the second is the target object.

Trait Implementations

impl Clone for EventKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EventKind
[src]

Formats the value using the given formatter.

impl PartialEq for EventKind
[src]

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

This method tests for !=.