pub struct SlackAppContextChangedEvent {
pub context: SlackAppContext,
}Expand description
https://docs.slack.dev/reference/events/app_context_changed
The payload is {"context": {"entities": [...]}} or {"context": {}};
there is no channel, user or event_ts.
Fields§
§context: SlackAppContextImplementations§
Source§impl SlackAppContextChangedEvent
impl SlackAppContextChangedEvent
Sourcepub fn new(context: SlackAppContext) -> Self
pub fn new(context: SlackAppContext) -> Self
Creates a new SlackAppContextChangedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn context(&mut self, value: SlackAppContext) -> &mut Self
pub fn context(&mut self, value: SlackAppContext) -> &mut Self
Sets context to value.
Sourcepub fn with_context(self, value: SlackAppContext) -> Self
pub fn with_context(self, value: SlackAppContext) -> Self
Returns self with context set to value.
Trait Implementations§
Source§impl Clone for SlackAppContextChangedEvent
impl Clone for SlackAppContextChangedEvent
Source§impl Debug for SlackAppContextChangedEvent
impl Debug for SlackAppContextChangedEvent
Source§impl<'de> Deserialize<'de> for SlackAppContextChangedEvent
impl<'de> Deserialize<'de> for SlackAppContextChangedEvent
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
Source§impl From<SlackAppContextChangedEventInit> for SlackAppContextChangedEvent
impl From<SlackAppContextChangedEventInit> for SlackAppContextChangedEvent
Source§fn from(value: SlackAppContextChangedEventInit) -> Self
fn from(value: SlackAppContextChangedEventInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAppContextChangedEvent
Auto Trait Implementations§
impl Freeze for SlackAppContextChangedEvent
impl RefUnwindSafe for SlackAppContextChangedEvent
impl Send for SlackAppContextChangedEvent
impl Sync for SlackAppContextChangedEvent
impl Unpin for SlackAppContextChangedEvent
impl UnsafeUnpin for SlackAppContextChangedEvent
impl UnwindSafe for SlackAppContextChangedEvent
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