[][src]Enum slack::Event

pub enum Event {
    Hello,
    Message(Box<Message>),
    UserTyping {
        channel: String,
        user: String,
    },
    ChannelMarked {
        channel: String,
        ts: String,
    },
    ChannelCreated {
        channel: Box<Channel>,
    },
    ChannelJoined {
        channel: Box<Channel>,
    },
    ChannelLeft {
        channel: String,
    },
    ChannelDeleted {
        channel: String,
    },
    ChannelRename {
        channel: Box<Channel>,
    },
    ChannelArchive {
        channel: String,
        user: String,
    },
    ChannelUnArchive {
        channel: String,
        user: String,
    },
    ChannelHistoryChanged {
        latest: String,
        ts: String,
        event_ts: String,
    },
    ImCreated {
        user: String,
        channel: Box<Channel>,
    },
    ImOpen {
        user: String,
        channel: String,
    },
    ImClose {
        user: String,
        channel: String,
    },
    ImMarked {
        channel: String,
        ts: String,
    },
    ImHistoryChanged {
        latest: String,
        ts: String,
        event_ts: String,
    },
    GroupJoined {
        channel: Box<Channel>,
    },
    GroupLeft {
        channel: Box<Channel>,
    },
    GroupOpen {
        user: String,
        channel: String,
    },
    GroupClose {
        user: String,
        channel: String,
    },
    GroupArchive {
        channel: String,
    },
    GroupUnArchive {
        channel: String,
    },
    GroupRename {
        channel: Box<Channel>,
    },
    GroupMarked {
        channel: String,
        ts: String,
    },
    GroupHistoryChanged {
        latest: String,
        ts: String,
        event_ts: String,
    },
    FileCreated {
        file: Box<File>,
    },
    FileShared {
        file: Box<File>,
    },
    FileUnShared {
        file: Box<File>,
    },
    FilePublic {
        file: Box<File>,
    },
    FilePrivate {
        file: String,
    },
    FileChange {
        file: Box<File>,
    },
    FileDeleted {
        file_id: String,
        event_ts: String,
    },
    FileCommentAdded {
        file: Box<File>,
        comment: FileComment,
    },
    FileCommentEdited {
        file: Box<File>,
        comment: FileComment,
    },
    FileCommentDeleted {
        file: Box<File>,
        comment: String,
    },
    PinAdded {
        user: String,
        channel_id: String,
        item: Box<MessagePinnedItem>,
        event_ts: String,
    },
    PinRemoved {
        user: String,
        channel_id: String,
        item: Box<MessageUnpinnedItem>,
        has_pins: bool,
        event_ts: String,
    },
    PresenceChange {
        user: Option<String>,
        users: Option<Vec<String>>,
        presence: String,
    },
    ManualPresenceChange {
        presence: String,
    },
    PrefChange {
        name: String,
        value: String,
    },
    UserChange {
        user: Box<User>,
    },
    TeamJoin {
        user: Box<User>,
    },
    StarAdded {
        user: String,
        item: Box<ListResponseItem>,
        event_ts: String,
    },
    StarRemoved {
        user: String,
        item: Box<ListResponseItem>,
        event_ts: String,
    },
    ReactionAdded {
        user: String,
        reaction: String,
        item: Box<ListResponseItem>,
        item_user: String,
        event_ts: String,
    },
    ReactionRemoved {
        user: String,
        reaction: String,
        item: Box<ListResponseItem>,
        item_user: String,
        event_ts: String,
    },
    EmojiChanged {
        event_ts: String,
    },
    CommandsChanged {
        event_ts: String,
    },
    TeamPlanChange {
        plan: String,
    },
    TeamPrefChange {
        name: String,
        value: bool,
    },
    TeamRename {
        name: String,
    },
    TeamDomainChange {
        url: String,
        domain: String,
    },
    EmailDomainChanged {
        email_domain: String,
        event_ts: String,
    },
    BotAdded {
        bot: Bot,
    },
    BotChanged {
        bot: Bot,
    },
    AccountsChanged,
    TeamMigrationStarted,
    ReconnectUrl {
        url: String,
    },
    MessageSent(MessageSent),
    MessageError(MessageError),
    DesktopNotification {
        avatar_image: Option<String>,
        channel: Option<String>,
        content: Option<String>,
        event_ts: Option<String>,
        image_uri: Option<String>,
        is_shared: Option<bool>,
        launch_uri: Option<String>,
        msg: Option<String>,
        ssb_filename: Option<String>,
        subtitle: Option<String>,
        thread_ts: Option<String>,
        title: Option<String>,
    },
}

Represents Slack rtm event types.

Variants

Hello

Represents the slack hello event.

Message(Box<Message>)

Represents the slack message event.

UserTyping

Represents the slack user_typing event.

Fields of UserTyping

channel: Stringuser: String
ChannelMarked

Represents the slack channel_marked event.

Fields of ChannelMarked

channel: Stringts: String
ChannelCreated

Represents the slack channel_created event.

Fields of ChannelCreated

channel: Box<Channel>
ChannelJoined

Represents the slack channel_joined event.

Fields of ChannelJoined

channel: Box<Channel>
ChannelLeft

Represents the slack channel_left event.

Fields of ChannelLeft

channel: String
ChannelDeleted

Represents the slack channel_deleted event.

Fields of ChannelDeleted

channel: String
ChannelRename

Represents the slack channel_rename event.

Fields of ChannelRename

channel: Box<Channel>
ChannelArchive

Represents the slack channel_archive event.

Fields of ChannelArchive

channel: Stringuser: String
ChannelUnArchive

Represents the slack channel_unarchive event.

Fields of ChannelUnArchive

channel: Stringuser: String
ChannelHistoryChanged

Represents the slack channel_history_changed event.

Fields of ChannelHistoryChanged

latest: Stringts: Stringevent_ts: String
ImCreated

Represents the slack im_created event.

Fields of ImCreated

user: Stringchannel: Box<Channel>
ImOpen

Represents the slack im_open event.

Fields of ImOpen

user: Stringchannel: String
ImClose

Represents the slack im_close event.

Fields of ImClose

user: Stringchannel: String
ImMarked

Represents the slack im_marked event.

Fields of ImMarked

channel: Stringts: String
ImHistoryChanged

Represents the slack im_history_changed event.

Fields of ImHistoryChanged

latest: Stringts: Stringevent_ts: String
GroupJoined

Represents the slack group_joined event.

Fields of GroupJoined

channel: Box<Channel>
GroupLeft

Represents the slack group_left event.

Fields of GroupLeft

channel: Box<Channel>
GroupOpen

Represents the slack group_open event.

Fields of GroupOpen

user: Stringchannel: String
GroupClose

Represents the slack group_close event.

Fields of GroupClose

user: Stringchannel: String
GroupArchive

Represents the slack group_archive event.

Fields of GroupArchive

channel: String
GroupUnArchive

Represents the slack group_unarchive event.

Fields of GroupUnArchive

channel: String
GroupRename

Represents the slack group_rename event.

Fields of GroupRename

channel: Box<Channel>
GroupMarked

Represents the slack group_marked event.

Fields of GroupMarked

channel: Stringts: String
GroupHistoryChanged

Represents the slack group_history_changed event.

Fields of GroupHistoryChanged

latest: Stringts: Stringevent_ts: String
FileCreated

Represents the slack file_created event.

Fields of FileCreated

file: Box<File>
FileShared

Represents the slack file_shared event.

Fields of FileShared

file: Box<File>
FileUnShared

Represents the slack file_unshared event.

Fields of FileUnShared

file: Box<File>
FilePublic

Represents the slack file_public event.

Fields of FilePublic

file: Box<File>
FilePrivate

Represents the slack file_private event.

Fields of FilePrivate

file: String
FileChange

Represents the slack file_change event.

Fields of FileChange

file: Box<File>
FileDeleted

Represents the slack file_deleted event.

Fields of FileDeleted

file_id: Stringevent_ts: String
FileCommentAdded

Represents the slack file_comment_added event.

Fields of FileCommentAdded

file: Box<File>comment: FileComment
FileCommentEdited

Represents the slack file_comment_edited event.

Fields of FileCommentEdited

file: Box<File>comment: FileComment
FileCommentDeleted

Represents the slack file_comment_deleted event.

Fields of FileCommentDeleted

file: Box<File>comment: String
PinAdded

Represents the slack pin_added event.

Fields of PinAdded

user: Stringchannel_id: Stringitem: Box<MessagePinnedItem>event_ts: String
PinRemoved

Represents the slack pin_removed event.

Fields of PinRemoved

user: Stringchannel_id: Stringitem: Box<MessageUnpinnedItem>has_pins: boolevent_ts: String
PresenceChange

Represents the slack presence_change event.

Fields of PresenceChange

user: Option<String>users: Option<Vec<String>>presence: String
ManualPresenceChange

Represents the slack manual_presence_change event.

Fields of ManualPresenceChange

presence: String
PrefChange

Represents the slack pref_change event.

Fields of PrefChange

name: Stringvalue: String
UserChange

Represents the slack user_change event.

Fields of UserChange

user: Box<User>
TeamJoin

Represents the slack team_join event.

Fields of TeamJoin

user: Box<User>
StarAdded

Represents the slack star_added event.

Fields of StarAdded

user: Stringitem: Box<ListResponseItem>event_ts: String
StarRemoved

Represents the slack star_removed event.

Fields of StarRemoved

user: Stringitem: Box<ListResponseItem>event_ts: String
ReactionAdded

Represents the slack reaction_added event.

Fields of ReactionAdded

user: Stringreaction: Stringitem: Box<ListResponseItem>item_user: Stringevent_ts: String
ReactionRemoved

Represents the slack reaction_removed event.

Fields of ReactionRemoved

user: Stringreaction: Stringitem: Box<ListResponseItem>item_user: Stringevent_ts: String
EmojiChanged

Represents the slack emoji_changed event.

Fields of EmojiChanged

event_ts: String
CommandsChanged

Represents the slack commands_changed event.

Fields of CommandsChanged

event_ts: String
TeamPlanChange

Represents the slack team_plan_change event.

Fields of TeamPlanChange

plan: String
TeamPrefChange

Represents the slack team_pref_change event.

Fields of TeamPrefChange

name: Stringvalue: bool
TeamRename

Represents the slack team_rename event.

Fields of TeamRename

name: String
TeamDomainChange

Represents the slack team_domain_change event.

Fields of TeamDomainChange

url: Stringdomain: String
EmailDomainChanged

Represents the slack email_domain_changed event.

Fields of EmailDomainChanged

email_domain: Stringevent_ts: String
BotAdded

Represents the slack bot_added event.

Fields of BotAdded

bot: Bot
BotChanged

Represents the slack bot_changed event.

Fields of BotChanged

bot: Bot
AccountsChanged

Represents the slack accounts_changed event.

TeamMigrationStarted

Represents the slack team_migration_started event.

ReconnectUrl

Represents the slack reconnect_url event.

Fields of ReconnectUrl

url: String
MessageSent(MessageSent)

Represents a confirmation of a message sent

MessageError(MessageError)

Represents an error sending a message

DesktopNotification

Represents a request to display a desktop notification

Fields of DesktopNotification

avatar_image: Option<String>channel: Option<String>content: Option<String>event_ts: Option<String>image_uri: Option<String>is_shared: Option<bool>launch_uri: Option<String>msg: Option<String>ssb_filename: Option<String>subtitle: Option<String>thread_ts: Option<String>title: Option<String>

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl<'de> Deserialize<'de> for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,