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),
}Represents Slack rtm event types.
Variants
HelloRepresents the slack hello event.
Message(Box<Message>)Represents the slack message
event.
UserTypingRepresents the slack
user_typing event.
Fields of UserTyping
channel: String | |
user: String |
ChannelMarkedRepresents the slack
channel_marked event.
Fields of ChannelMarked
channel: String | |
ts: String |
ChannelCreatedRepresents the slack
channel_created event.
Fields of ChannelCreated
channel: Box<Channel> |
ChannelJoinedRepresents the slack
channel_joined event.
Fields of ChannelJoined
channel: Box<Channel> |
ChannelLeftRepresents the slack
channel_left event.
Fields of ChannelLeft
channel: String |
ChannelDeletedRepresents the slack
channel_deleted event.
Fields of ChannelDeleted
channel: String |
ChannelRenameRepresents the slack
channel_rename event.
Fields of ChannelRename
channel: Box<Channel> |
ChannelArchiveRepresents the slack
channel_archive event.
Fields of ChannelArchive
channel: String | |
user: String |
ChannelUnArchiveRepresents the slack
channel_unarchive event.
Fields of ChannelUnArchive
channel: String | |
user: String |
ChannelHistoryChangedRepresents the slack
channel_history_changed event.
Fields of ChannelHistoryChanged
latest: String | |
ts: String | |
event_ts: String |
ImCreatedRepresents the slack
im_created event.
Fields of ImCreated
user: String | |
channel: Box<Channel> |
ImOpenRepresents the slack im_open
event.
Fields of ImOpen
user: String | |
channel: String |
ImCloseRepresents the slack im_close
event.
Fields of ImClose
user: String | |
channel: String |
ImMarkedRepresents the slack im_marked
event.
Fields of ImMarked
channel: String | |
ts: String |
ImHistoryChangedRepresents the slack
im_history_changed
event.
Fields of ImHistoryChanged
latest: String | |
ts: String | |
event_ts: String |
GroupJoinedRepresents the slack
group_joined event.
Fields of GroupJoined
channel: Box<Channel> |
GroupLeftRepresents the slack
group_left event.
Fields of GroupLeft
channel: Box<Channel> |
GroupOpenRepresents the slack
group_open event.
Fields of GroupOpen
user: String | |
channel: String |
GroupCloseRepresents the slack
group_close event.
Fields of GroupClose
user: String | |
channel: String |
GroupArchiveRepresents the slack
group_archive event.
Fields of GroupArchive
channel: String |
GroupUnArchiveRepresents the slack
group_unarchive event.
Fields of GroupUnArchive
channel: String |
GroupRenameRepresents the slack
group_rename event.
Fields of GroupRename
channel: Box<Channel> |
GroupMarkedRepresents the slack
group_marked event.
Fields of GroupMarked
channel: String | |
ts: String |
GroupHistoryChangedRepresents the slack
group_history_changed event.
Fields of GroupHistoryChanged
latest: String | |
ts: String | |
event_ts: String |
FileCreatedRepresents the slack
file_created event.
Fields of FileCreated
file: Box<File> |
Represents the slack
file_shared event.
Represents the slack
file_unshared event.
FilePublicRepresents the slack
file_public event.
Fields of FilePublic
file: Box<File> |
FilePrivateRepresents the slack
file_private event.
Fields of FilePrivate
file: String |
FileChangeRepresents the slack
file_change event.
Fields of FileChange
file: Box<File> |
FileDeletedRepresents the slack
file_deleted event.
Fields of FileDeleted
file_id: String | |
event_ts: String |
FileCommentAddedRepresents the slack
file_comment_added
event.
Fields of FileCommentAdded
file: Box<File> | |
comment: FileComment |
FileCommentEditedRepresents the slack
file_comment_edited
event.
Fields of FileCommentEdited
file: Box<File> | |
comment: FileComment |
FileCommentDeletedRepresents the slack
file_comment_deleted
event.
Fields of FileCommentDeleted
file: Box<File> | |
comment: String |
PinAddedRepresents the slack pin_added
event.
Fields of PinAdded
user: String | |
channel_id: String | |
item: Box<MessagePinnedItem> | |
event_ts: String |
PinRemovedRepresents the slack
pin_removed event.
Fields of PinRemoved
user: String | |
channel_id: String | |
item: Box<MessageUnpinnedItem> | |
has_pins: bool | |
event_ts: String |
PresenceChangeRepresents the slack
presence_change event.
Fields of PresenceChange
user: String | |
presence: String |
ManualPresenceChangeRepresents the slack
manual_presence_change event.
Fields of ManualPresenceChange
presence: String |
PrefChangeRepresents the slack
pref_change event.
Fields of PrefChange
name: String | |
value: String |
UserChangeRepresents the slack
user_change event.
Fields of UserChange
user: Box<User> |
TeamJoinRepresents the slack team_join
event.
Fields of TeamJoin
user: Box<User> |
StarAddedRepresents the slack
star_added event.
Fields of StarAdded
user: String | |
item: Box<ListResponseItem> | |
event_ts: String |
StarRemovedRepresents the slack
star_removed event.
Fields of StarRemoved
user: String | |
item: Box<ListResponseItem> | |
event_ts: String |
ReactionAddedRepresents the slack
reaction_added event.
Fields of ReactionAdded
user: String | |
reaction: String | |
item: Box<ListResponseItem> | |
item_user: String | |
event_ts: String |
ReactionRemovedRepresents the slack
reaction_removed event.
Fields of ReactionRemoved
user: String | |
reaction: String | |
item: Box<ListResponseItem> | |
item_user: String | |
event_ts: String |
EmojiChangedRepresents the slack
emoji_changed event.
Fields of EmojiChanged
event_ts: String |
CommandsChangedRepresents the slack
commands_changed event.
Fields of CommandsChanged
event_ts: String |
TeamPlanChangeRepresents the slack
team_plan_change event.
Fields of TeamPlanChange
plan: String |
TeamPrefChangeRepresents the slack
team_pref_change event.
Fields of TeamPrefChange
name: String | |
value: bool |
TeamRenameRepresents the slack
team_rename event.
Fields of TeamRename
name: String |
TeamDomainChangeRepresents the slack
team_domain_change
event.
Fields of TeamDomainChange
url: String | |
domain: String |
EmailDomainChangedRepresents the slack
email_domain_changed event.
Fields of EmailDomainChanged
email_domain: String | |
event_ts: String |
BotAddedRepresents the slack bot_added
event.
Fields of BotAdded
bot: Bot |
BotChangedRepresents the slack
bot_changed event.
Fields of BotChanged
bot: Bot |
AccountsChangedRepresents the slack
accounts_changed event.
TeamMigrationStartedRepresents the slack
team_migration_started event.
ReconnectUrlRepresents 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
Trait Implementations
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