Enum slack::Event
[−]
[src]
pub enum Event { Hello, Message(Message), UserTyping { channel: String, user: String, }, ChannelMarked { channel: String, ts: String, }, ChannelCreated { channel: Channel, }, ChannelJoined { channel: Channel, }, ChannelLeft { channel: String, }, ChannelDeleted { channel: String, }, ChannelRename { channel: Channel, }, ChannelArchive { channel: String, user: String, }, ChannelUnArchive { channel: String, user: String, }, ChannelHistoryChanged { latest: String, ts: String, event_ts: String, }, ImCreated { user: String, channel: 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: Channel, }, GroupLeft { channel: Channel, }, GroupOpen { user: String, channel: String, }, GroupClose { user: String, channel: String, }, GroupArchive { channel: String, }, GroupUnArchive { channel: String, }, GroupRename { channel: Channel, }, GroupMarked { channel: String, ts: String, }, GroupHistoryChanged { latest: String, ts: String, event_ts: String, }, FileCreated { file: File, }, FileShared { file: File, }, FileUnShared { file: File, }, FilePublic { file: File, }, FilePrivate { file: String, }, FileChange { file: File, }, FileDeleted { file_id: String, event_ts: String, }, FileCommentAdded { file: File, comment: Comment, }, FileCommentEdited { file: File, comment: Comment, }, FileCommentDeleted { file: File, comment: String, }, PinAdded { user: String, channel_id: String, item: Item, event_ts: String, }, PinRemoved { user: String, channel_id: String, item: Item, has_pins: bool, event_ts: String, }, PresenceChange { user: String, presence: String, }, ManualPresenceChange { presence: String, }, PrefChange { name: String, value: String, }, UserChange { user: User, }, TeamJoin { user: User, }, StarAdded { user: String, item: Item, event_ts: String, }, StarRemoved { user: String, item: Item, event_ts: String, }, ReactionAdded { user: String, reaction: String, item: Item, item_user: String, event_ts: String, }, ReactionRemoved { user: String, reaction: String, item: Item, 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, MessageSent { reply_to: isize, ts: String, text: String, }, MessageError { reply_to: isize, code: isize, message: String, }, }
Represents Slack rtm event types.
Variants
Hello
Represents the slack hello
event.
Message(Message)
Represents the slack message
event.
UserTyping
Represents the slack
user_typing
event.
Fields
channel: String | |
user: String |
ChannelMarked
Represents the slack
channel_marked
event.
Fields
channel: String | |
ts: String |
ChannelCreated
Represents the slack
channel_created
event.
Fields
channel: Channel |
ChannelJoined
Represents the slack
channel_joined
event.
Fields
channel: Channel |
ChannelLeft
Represents the slack
channel_left
event.
Fields
channel: String |
ChannelDeleted
Represents the slack
channel_deleted
event.
Fields
channel: String |
ChannelRename
Represents the slack
channel_rename
event.
Fields
channel: Channel |
ChannelArchive
Represents the slack
channel_archive
event.
Fields
channel: String | |
user: String |
ChannelUnArchive
Represents the slack
channel_unarchive
event.
Fields
channel: String | |
user: String |
ChannelHistoryChanged
Represents the slack
channel_history_changed
event.
Fields
latest: String | |
ts: String | |
event_ts: String |
ImCreated
Represents the slack
im_created
event.
Fields
user: String | |
channel: Channel |
ImOpen
Represents the slack im_open
event.
Fields
user: String | |
channel: String |
ImClose
Represents the slack im_close
event.
Fields
user: String | |
channel: String |
ImMarked
Represents the slack im_marked
event.
Fields
channel: String | |
ts: String |
ImHistoryChanged
Represents the slack
im_history_changed
event.
Fields
latest: String | |
ts: String | |
event_ts: String |
GroupJoined
Represents the slack
group_joined
event.
Fields
channel: Channel |
GroupLeft
Represents the slack
group_left
event.
Fields
channel: Channel |
GroupOpen
Represents the slack
group_open
event.
Fields
user: String | |
channel: String |
GroupClose
Represents the slack
group_close
event.
Fields
user: String | |
channel: String |
GroupArchive
Represents the slack
group_archive
event.
Fields
channel: String |
GroupUnArchive
Represents the slack
group_unarchive
event.
Fields
channel: String |
GroupRename
Represents the slack
group_rename
event.
Fields
channel: Channel |
GroupMarked
Represents the slack
group_marked
event.
Fields
channel: String | |
ts: String |
GroupHistoryChanged
Represents the slack
group_history_changed
event.
Fields
latest: String | |
ts: String | |
event_ts: String |
FileCreated
Represents the slack
file_created
event.
Fields
file: File |
Represents the slack
file_shared
event.
Fields
file: File |
Represents the slack
file_unshared
event.
Fields
file: File |
FilePublic
Represents the slack
file_public
event.
Fields
file: File |
FilePrivate
Represents the slack
file_private
event.
Fields
file: String |
FileChange
Represents the slack
file_change
event.
Fields
file: File |
FileDeleted
Represents the slack
file_deleted
event.
Fields
file_id: String | |
event_ts: String |
FileCommentAdded
Represents the slack
file_comment_added
event.
Fields
file: File | |
comment: Comment |
FileCommentEdited
Represents the slack
file_comment_edited
event.
Fields
file: File | |
comment: Comment |
FileCommentDeleted
Represents the slack
file_comment_deleted
event.
Fields
file: File | |
comment: String |
PinAdded
Represents the slack pin_added
event.
Fields
user: String | |
channel_id: String | |
item: Item | |
event_ts: String |
PinRemoved
Represents the slack
pin_removed
event.
Fields
user: String | |
channel_id: String | |
item: Item | |
has_pins: bool | |
event_ts: String |
PresenceChange
Represents the slack
presence_change
event.
Fields
user: String | |
presence: String |
ManualPresenceChange
Represents the slack
manual_presence_change
event.
Fields
presence: String |
PrefChange
Represents the slack
pref_change
event.
Fields
name: String | |
value: String |
UserChange
Represents the slack
user_change
event.
Fields
user: User |
TeamJoin
Represents the slack team_join
event.
Fields
user: User |
StarAdded
Represents the slack
star_added
event.
Fields
user: String | |
item: Item | |
event_ts: String |
StarRemoved
Represents the slack
star_removed
event.
Fields
user: String | |
item: Item | |
event_ts: String |
ReactionAdded
Represents the slack
reaction_added
event.
Fields
user: String | |
reaction: String | |
item: Item | |
item_user: String | |
event_ts: String |
ReactionRemoved
Represents the slack
reaction_removed
event.
Fields
user: String | |
reaction: String | |
item: Item | |
item_user: String | |
event_ts: String |
EmojiChanged
Represents the slack
emoji_changed
event.
Fields
event_ts: String |
CommandsChanged
Represents the slack
commands_changed
event.
Fields
event_ts: String |
TeamPlanChange
Represents the slack
team_plan_change
event.
Fields
plan: String |
TeamPrefChange
Represents the slack
team_pref_change
event.
Fields
name: String | |
value: bool |
TeamRename
Represents the slack
team_rename
event.
Fields
name: String |
TeamDomainChange
Represents the slack
team_domain_change
event.
Fields
url: String | |
domain: String |
EmailDomainChanged
Represents the slack
email_domain_changeed
event.
Fields
email_domain: String | |
event_ts: String |
BotAdded
Represents the slack bot_added
event.
Fields
bot: Bot |
BotChanged
Represents the slack
bot_changed
event.
Fields
bot: Bot |
AccountsChanged
Represents the slack
accounts_changed
event.
TeamMigrationStarted
Represents the slack
team_migration_started
event.
ReconnectUrl
Represents the slack
reconnect_url
event.
MessageSent
Represents a confirmation of a message sent
Fields
reply_to: isize | |
ts: String | |
text: String |
MessageError
Represents an error sending a message
Fields
reply_to: isize | |
code: isize | |
message: String |
Trait Implementations
impl Debug for Event
[src]
impl Clone for Event
[src]
fn clone(&self) -> Event
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