pub struct SlackAgentSessionTitleChangedEvent {
pub channel: SlackChannelId,
pub thread_ts: Option<SlackTs>,
pub title: String,
pub previous_title: Option<String>,
pub user: Option<SlackUserId>,
pub team_id: Option<SlackTeamId>,
pub enterprise_id: Option<SlackEnterpriseId>,
pub event_ts: Option<SlackTs>,
}Expand description
https://docs.slack.dev/reference/events/agent_session_title_changed
Fields§
§channel: SlackChannelId§thread_ts: Option<SlackTs>§title: String§previous_title: Option<String>§user: Option<SlackUserId>§team_id: Option<SlackTeamId>§enterprise_id: Option<SlackEnterpriseId>Present for org-level installs.
event_ts: Option<SlackTs>Implementations§
Source§impl SlackAgentSessionTitleChangedEvent
impl SlackAgentSessionTitleChangedEvent
Sourcepub fn new(channel: SlackChannelId, title: String) -> Self
pub fn new(channel: SlackChannelId, title: String) -> Self
Creates a new SlackAgentSessionTitleChangedEvent 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 with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to value.
Sourcepub fn previous_title(&mut self, value: String) -> &mut Self
pub fn previous_title(&mut self, value: String) -> &mut Self
Sets previous_title to Some(value).
Sourcepub fn reset_previous_title(&mut self) -> &mut Self
pub fn reset_previous_title(&mut self) -> &mut Self
Sets previous_title to None.
Sourcepub fn mopt_previous_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_previous_title(&mut self, value: Option<String>) -> &mut Self
Sets previous_title to the given Option.
Sourcepub fn with_previous_title(self, value: String) -> Self
pub fn with_previous_title(self, value: String) -> Self
Returns self with previous_title set to Some(value).
Sourcepub fn without_previous_title(self) -> Self
pub fn without_previous_title(self) -> Self
Returns self with previous_title set to None.
Sourcepub fn opt_previous_title(self, value: Option<String>) -> Self
pub fn opt_previous_title(self, value: Option<String>) -> Self
Returns self with previous_title 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 team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets team_id to Some(value).
Sourcepub fn reset_team_id(&mut self) -> &mut Self
pub fn reset_team_id(&mut self) -> &mut Self
Sets team_id to None.
Sourcepub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
Sets team_id to the given Option.
Sourcepub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
Returns self with team_id set to Some(value).
Sourcepub fn without_team_id(self) -> Self
pub fn without_team_id(self) -> Self
Returns self with team_id set to None.
Sourcepub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
pub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
Returns self with team_id set to the given Option.
Sourcepub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
pub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
Sets enterprise_id to Some(value).
Present for org-level installs.
Sourcepub fn reset_enterprise_id(&mut self) -> &mut Self
pub fn reset_enterprise_id(&mut self) -> &mut Self
Sets enterprise_id to None.
Present for org-level installs.
Sourcepub fn mopt_enterprise_id(
&mut self,
value: Option<SlackEnterpriseId>,
) -> &mut Self
pub fn mopt_enterprise_id( &mut self, value: Option<SlackEnterpriseId>, ) -> &mut Self
Sets enterprise_id to the given Option.
Present for org-level installs.
Sourcepub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
pub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
Returns self with enterprise_id set to Some(value).
Present for org-level installs.
Sourcepub fn without_enterprise_id(self) -> Self
pub fn without_enterprise_id(self) -> Self
Returns self with enterprise_id set to None.
Present for org-level installs.
Sourcepub fn opt_enterprise_id(self, value: Option<SlackEnterpriseId>) -> Self
pub fn opt_enterprise_id(self, value: Option<SlackEnterpriseId>) -> Self
Returns self with enterprise_id set to the given Option.
Present for org-level installs.
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.