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
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: String | |
user: String |
ChannelMarked
Represents the slack
channel_marked
event.
Fields of ChannelMarked
channel: String | |
ts: 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: String | |
user: String |
ChannelUnArchive
Represents the slack
channel_unarchive
event.
Fields of ChannelUnArchive
channel: String | |
user: String |
ChannelHistoryChanged
Represents the slack
channel_history_changed
event.
Fields of ChannelHistoryChanged
latest: String | |
ts: String | |
event_ts: String |
ImCreated
Represents the slack
im_created
event.
Fields of ImCreated
user: String | |
channel: Box<Channel> |
ImOpen
Represents the slack im_open
event.
Fields of ImOpen
user: String | |
channel: String |
ImClose
Represents the slack im_close
event.
Fields of ImClose
user: String | |
channel: String |
ImMarked
Represents the slack im_marked
event.
Fields of ImMarked
channel: String | |
ts: String |
ImHistoryChanged
Represents the slack
im_history_changed
event.
Fields of ImHistoryChanged
latest: String | |
ts: String | |
event_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: String | |
channel: String |
GroupClose
Represents the slack
group_close
event.
Fields of GroupClose
user: String | |
channel: 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: String | |
ts: String |
GroupHistoryChanged
Represents the slack
group_history_changed
event.
Fields of GroupHistoryChanged
latest: String | |
ts: String | |
event_ts: String |
FileCreated
Represents the slack
file_created
event.
Fields of FileCreated
file: Box<File> |
Represents the slack
file_shared
event.
Represents the slack
file_unshared
event.
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: String | |
event_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: String | |
channel_id: String | |
item: Box<MessagePinnedItem> | |
event_ts: String |
PinRemoved
Represents the slack
pin_removed
event.
Fields of PinRemoved
user: String | |
channel_id: String | |
item: Box<MessageUnpinnedItem> | |
has_pins: bool | |
event_ts: String |
PresenceChange
Represents the slack
presence_change
event.
Fields of PresenceChange
user: 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: String | |
value: 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: String | |
item: Box<ListResponseItem> | |
event_ts: String |
StarRemoved
Represents the slack
star_removed
event.
Fields of StarRemoved
user: String | |
item: Box<ListResponseItem> | |
event_ts: String |
ReactionAdded
Represents the slack
reaction_added
event.
Fields of ReactionAdded
user: String | |
reaction: String | |
item: Box<ListResponseItem> | |
item_user: String | |
event_ts: String |
ReactionRemoved
Represents the slack
reaction_removed
event.
Fields of ReactionRemoved
user: String | |
reaction: String | |
item: Box<ListResponseItem> | |
item_user: String | |
event_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: String | |
value: 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: String | |
domain: String |
EmailDomainChanged
Represents the slack
email_domain_changed
event.
Fields of EmailDomainChanged
email_domain: String | |
event_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> | |
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 Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event