pub struct SlackAgentSessionStoppedEvent {
pub channel: SlackChannelId,
pub thread_ts: Option<SlackTs>,
pub streaming_message_ts: Option<Vec<SlackTs>>,
pub user: Option<SlackUserId>,
pub event_ts: Option<SlackTs>,
}Expand description
https://docs.slack.dev/reference/events/agent_session_stopped
Fields§
§channel: SlackChannelId§thread_ts: Option<SlackTs>§streaming_message_ts: Option<Vec<SlackTs>>§user: Option<SlackUserId>§event_ts: Option<SlackTs>Implementations§
Source§impl SlackAgentSessionStoppedEvent
impl SlackAgentSessionStoppedEvent
Sourcepub fn new(channel: SlackChannelId) -> Self
pub fn new(channel: SlackChannelId) -> Self
Creates a new SlackAgentSessionStoppedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn reset_thread_ts(&mut self) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
Sets thread_ts to None.
Sourcepub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets thread_ts to the given Option.
Sourcepub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
Returns self with thread_ts set to Some(value).
Sourcepub fn without_thread_ts(self) -> Self
pub fn without_thread_ts(self) -> Self
Returns self with thread_ts set to None.
Sourcepub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
Returns self with thread_ts set to the given Option.
Sourcepub fn streaming_message_ts(&mut self, value: Vec<SlackTs>) -> &mut Self
pub fn streaming_message_ts(&mut self, value: Vec<SlackTs>) -> &mut Self
Sets streaming_message_ts to Some(value).
Sourcepub fn reset_streaming_message_ts(&mut self) -> &mut Self
pub fn reset_streaming_message_ts(&mut self) -> &mut Self
Sets streaming_message_ts to None.
Sourcepub fn mopt_streaming_message_ts(
&mut self,
value: Option<Vec<SlackTs>>,
) -> &mut Self
pub fn mopt_streaming_message_ts( &mut self, value: Option<Vec<SlackTs>>, ) -> &mut Self
Sets streaming_message_ts to the given Option.
Sourcepub fn with_streaming_message_ts(self, value: Vec<SlackTs>) -> Self
pub fn with_streaming_message_ts(self, value: Vec<SlackTs>) -> Self
Returns self with streaming_message_ts set to Some(value).
Sourcepub fn without_streaming_message_ts(self) -> Self
pub fn without_streaming_message_ts(self) -> Self
Returns self with streaming_message_ts set to None.
Sourcepub fn opt_streaming_message_ts(self, value: Option<Vec<SlackTs>>) -> Self
pub fn opt_streaming_message_ts(self, value: Option<Vec<SlackTs>>) -> Self
Returns self with streaming_message_ts set to the given Option.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to Some(value).
Sourcepub fn reset_user(&mut self) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
Sets user to None.
Sourcepub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets user to the given Option.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to Some(value).
Sourcepub fn without_user(self) -> Self
pub fn without_user(self) -> Self
Returns self with user set to None.
Sourcepub fn opt_user(self, value: Option<SlackUserId>) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
Returns self with user set to the given Option.
Sourcepub fn reset_event_ts(&mut self) -> &mut Self
pub fn reset_event_ts(&mut self) -> &mut Self
Sets event_ts to None.
Sourcepub fn mopt_event_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_event_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets event_ts to the given Option.
Sourcepub fn with_event_ts(self, value: SlackTs) -> Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Returns self with event_ts set to Some(value).
Sourcepub fn without_event_ts(self) -> Self
pub fn without_event_ts(self) -> Self
Returns self with event_ts set to None.
Sourcepub fn opt_event_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_event_ts(self, value: Option<SlackTs>) -> Self
Returns self with event_ts set to the given Option.