pub enum SlackSubscriptionTarget {
DirectMessages,
Conversation {
id: String,
name: Option<String>,
mode: SlackWatchMode,
},
Mentions,
}Expand description
What one subscription watches inside a workspace.
Variants§
DirectMessages
Every DM in the workspace, group DMs included - the DM class the design settled on, so a new DM needs no new subscription.
Conversation
One conversation, with the mode that decides what reaches the session.
name is the display name, which may arrive after the record is
written: the sweep backfills it from its directory, and a record
still without one renders the raw id.
Mentions
Every message in this workspace that mentions the user, including public channels they are not in. Not private channels they are not in, which they could not read anyway.
Swept by one search per workspace rather than by conversation, so the per-conversation matching path never claims it - letting both claim a mention would deliver it twice.
Trait Implementations§
Source§impl Clone for SlackSubscriptionTarget
impl Clone for SlackSubscriptionTarget
Source§impl Debug for SlackSubscriptionTarget
impl Debug for SlackSubscriptionTarget
Source§impl<'de> Deserialize<'de> for SlackSubscriptionTarget
impl<'de> Deserialize<'de> for SlackSubscriptionTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SlackSubscriptionTarget
Source§impl PartialEq for SlackSubscriptionTarget
impl PartialEq for SlackSubscriptionTarget
Source§impl Serialize for SlackSubscriptionTarget
impl Serialize for SlackSubscriptionTarget
impl StructuralPartialEq for SlackSubscriptionTarget
Auto Trait Implementations§
impl Freeze for SlackSubscriptionTarget
impl RefUnwindSafe for SlackSubscriptionTarget
impl Send for SlackSubscriptionTarget
impl Sync for SlackSubscriptionTarget
impl Unpin for SlackSubscriptionTarget
impl UnsafeUnpin for SlackSubscriptionTarget
impl UnwindSafe for SlackSubscriptionTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.