Event

Enum Event 

Source
pub enum Event {
Show 36 variants AppHomeOpened { user: String, channel: String, event_ts: String, tab: String, view: View, }, AppMention { user: String, text: String, ts: String, channel: String, event_ts: String, }, AppRateLimited { token: String, team_id: String, minute_rate_limited: i32, api_app_id: String, }, AppRequested { app_request: AppRequest, }, AppUninstalled(CallbackEvent), ChannelArchive { channel: String, user: String, }, ChannelCreated { channel: Channel, }, ChannelDeleted { channel: String, }, ChannelHistoryChanged { latest: String, ts: String, event_ts: String, }, ChannelIDChanged { old_channel_id: String, new_channel_id: String, event_ts: String, }, ChannelLeft { channel: String, }, ChannelRename { channel: Channel, }, ChannelShared { connected_team_id: String, channel: String, event_ts: String, }, ChannelUnarchive { channel: String, user: String, }, ChannelUnshared { previously_connected_team_id: String, channel: String, is_ext_shared: bool, event_ts: String, }, EmojiChanged { subtype: String, names: Vec<String>, event_ts: String, }, GridMigrationFinished(CallbackEvent), GridMigrationStarted(CallbackEvent), GroupArchive { channel: String, }, GroupClose { user: String, channel: String, }, GroupDeleted { channel: String, }, GroupHistoryChanged { latest: String, ts: String, event_ts: String, }, GroupLeft { channel: String, }, GroupOpen { user: String, channel: String, }, GroupRename { channel: Channel, }, GroupUnarchive { channel: String, }, ImClose { user: String, channel: String, }, ImCreated { user: String, channel: Channel, }, ImHistoryChanged { latest: String, ts: String, event_ts: String, }, ImOpen { user: String, channel: String, }, InviteRequested { id: String, email: String, date_created: i32, requester_ids: Vec<String>, channel_ids: Vec<String>, invite_type: String, real_name: String, date_expire: i32, request_reason: String, team: Team, }, LinkShared, MemberJoinedChannel { user: String, channel: String, channel_type: String, team: String, inviter: String, }, MemberLeftChannel { user: String, channel: String, channel_type: String, team: String, }, Message { channel: String, user: String, channel_type: String, text: String, ts: String, }, None,
}
Expand description

Variants§

§

AppHomeOpened

User clicked into your App Home

Fields

§user: String
§channel: String
§event_ts: String
§view: View
§

AppMention

Subscribe to only the message events that mention your app or bot

Fields

§user: String
§text: String
§channel: String
§event_ts: String
§

AppRateLimited

Indicates your app’s event subscriptions are being rate limited

Fields

§token: String
§team_id: String
§minute_rate_limited: i32
§api_app_id: String
§

AppRequested

User requested an app

Fields

§app_request: AppRequest
§

AppUninstalled(CallbackEvent)

Your Slack app was uninstalled.

§

ChannelArchive

A channel was archived

Fields

§channel: String
§user: String
§

ChannelCreated

A channel was created

Fields

§channel: Channel
§

ChannelDeleted

A channel was deleted

Fields

§channel: String
§

ChannelHistoryChanged

Bulk updates were made to a channel’s history

Fields

§latest: String
§event_ts: String
§

ChannelIDChanged

A channel ID changed

Fields

§old_channel_id: String
§new_channel_id: String
§event_ts: String
§

ChannelLeft

You left a channel

Fields

§channel: String
§

ChannelRename

A channel was renamed

Fields

§channel: Channel
§

ChannelShared

A channel has been shared with an external workspace

Fields

§connected_team_id: String
§channel: String
§event_ts: String
§

ChannelUnarchive

A channel was unarchived

Fields

§channel: String
§user: String
§

ChannelUnshared

A channel has been unshared with an external workspace

Fields

§previously_connected_team_id: String
§channel: String
§is_ext_shared: bool
§event_ts: String
§

EmojiChanged

A custom emoji has been added or changed

Fields

§subtype: String
§names: Vec<String>
§event_ts: String
§

GridMigrationFinished(CallbackEvent)

An enterprise grid migration has finished on this workspace.

§

GridMigrationStarted(CallbackEvent)

An enterprise grid migration has started on this workspace.

§

GroupArchive

A private channel was archived

Fields

§channel: String
§

GroupClose

You closed a private channel

Fields

§user: String
§channel: String
§

GroupDeleted

A private channel was deleted

Fields

§channel: String
§

GroupHistoryChanged

A private channel was deleted

Fields

§latest: String
§event_ts: String
§

GroupLeft

You left a private channel

Fields

§channel: String
§

GroupOpen

You created a group DM

Fields

§user: String
§channel: String
§

GroupRename

A private channel was renamed

Fields

§channel: Channel
§

GroupUnarchive

A private channel was unarchived

Fields

§channel: String
§

ImClose

You closed a DM

Fields

§user: String
§channel: String
§

ImCreated

A DM was created

Fields

§user: String
§channel: Channel
§

ImHistoryChanged

Bulk updates were made to a DM’s history

Fields

§latest: String
§event_ts: String
§

ImOpen

You opened a DM

Fields

§user: String
§channel: String
§

InviteRequested

User requested an invite

Fields

§email: String
§date_created: i32
§requester_ids: Vec<String>
§channel_ids: Vec<String>
§invite_type: String
§real_name: String
§date_expire: i32
§request_reason: String
§team: Team
§

LinkShared

A message was posted containing one or more links relevant to your application

§

MemberJoinedChannel

A user joined a public or private channel

Fields

§user: String
§channel: String
§channel_type: String
§team: String
§inviter: String
§

MemberLeftChannel

A user left a public or private channel

Fields

§user: String
§channel: String
§channel_type: String
§team: String
§

Message

A message was sent to a channel

Fields

§channel: String
§user: String
§channel_type: String
§text: String
§

None

Implementations§

Trait Implementations§

Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Event

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Event) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Event

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,