Enum slack::Event [] [src]

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: 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

Represents the slack hello event.

Represents the slack message event.

Represents the slack user_typing event.

Fields of UserTyping

Represents the slack channel_marked event.

Fields of ChannelMarked

Represents the slack channel_created event.

Fields of ChannelCreated

Represents the slack channel_joined event.

Fields of ChannelJoined

Represents the slack channel_left event.

Fields of ChannelLeft

Represents the slack channel_deleted event.

Fields of ChannelDeleted

Represents the slack channel_rename event.

Fields of ChannelRename

Represents the slack channel_archive event.

Fields of ChannelArchive

Represents the slack channel_unarchive event.

Fields of ChannelUnArchive

Represents the slack channel_history_changed event.

Fields of ChannelHistoryChanged

Represents the slack im_created event.

Fields of ImCreated

Represents the slack im_open event.

Fields of ImOpen

Represents the slack im_close event.

Fields of ImClose

Represents the slack im_marked event.

Fields of ImMarked

Represents the slack im_history_changed event.

Fields of ImHistoryChanged

Represents the slack group_joined event.

Fields of GroupJoined

Represents the slack group_left event.

Fields of GroupLeft

Represents the slack group_open event.

Fields of GroupOpen

Represents the slack group_close event.

Fields of GroupClose

Represents the slack group_archive event.

Fields of GroupArchive

Represents the slack group_unarchive event.

Fields of GroupUnArchive

Represents the slack group_rename event.

Fields of GroupRename

Represents the slack group_marked event.

Fields of GroupMarked

Represents the slack group_history_changed event.

Fields of GroupHistoryChanged

Represents the slack file_created event.

Fields of FileCreated

Represents the slack file_shared event.

Fields of FileShared

Represents the slack file_unshared event.

Fields of FileUnShared

Represents the slack file_public event.

Fields of FilePublic

Represents the slack file_private event.

Fields of FilePrivate

Represents the slack file_change event.

Fields of FileChange

Represents the slack file_deleted event.

Fields of FileDeleted

Represents the slack file_comment_added event.

Fields of FileCommentAdded

Represents the slack file_comment_edited event.

Fields of FileCommentEdited

Represents the slack file_comment_deleted event.

Fields of FileCommentDeleted

Represents the slack pin_added event.

Fields of PinAdded

Represents the slack pin_removed event.

Fields of PinRemoved

Represents the slack presence_change event.

Fields of PresenceChange

Represents the slack manual_presence_change event.

Fields of ManualPresenceChange

Represents the slack pref_change event.

Fields of PrefChange

Represents the slack user_change event.

Fields of UserChange

Represents the slack team_join event.

Fields of TeamJoin

Represents the slack star_added event.

Fields of StarAdded

Represents the slack star_removed event.

Fields of StarRemoved

Represents the slack reaction_added event.

Fields of ReactionAdded

Represents the slack reaction_removed event.

Fields of ReactionRemoved

Represents the slack emoji_changed event.

Fields of EmojiChanged

Represents the slack commands_changed event.

Fields of CommandsChanged

Represents the slack team_plan_change event.

Fields of TeamPlanChange

Represents the slack team_pref_change event.

Fields of TeamPrefChange

Represents the slack team_rename event.

Fields of TeamRename

Represents the slack team_domain_change event.

Fields of TeamDomainChange

Represents the slack email_domain_changed event.

Fields of EmailDomainChanged

Represents the slack bot_added event.

Fields of BotAdded

Represents the slack bot_changed event.

Fields of BotChanged

Represents the slack accounts_changed event.

Represents the slack team_migration_started event.

Represents the slack reconnect_url event.

Fields of ReconnectUrl

Represents a confirmation of a message sent

Represents an error sending a message

Represents a request to display a desktop notification

Fields of DesktopNotification

Trait Implementations

impl Clone for Event
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

[src]

Formats the value using the given formatter.