pub struct SlackApiAgentsSessionsSetStatusRequest {
pub status: SlackAgentSessionStatus,
pub channel_id: Option<SlackChannelId>,
pub thread_ts: Option<SlackTs>,
pub title: Option<String>,
pub initiator_user_id: Option<SlackUserId>,
pub icon_emoji: Option<SlackEmoji>,
pub icon_url: Option<Url>,
pub username: Option<String>,
}Fields§
§status: SlackAgentSessionStatus§channel_id: Option<SlackChannelId>§thread_ts: Option<SlackTs>§title: Option<String>§initiator_user_id: Option<SlackUserId>§icon_emoji: Option<SlackEmoji>§icon_url: Option<Url>§username: Option<String>Implementations§
Source§impl SlackApiAgentsSessionsSetStatusRequest
impl SlackApiAgentsSessionsSetStatusRequest
Sourcepub fn new(status: SlackAgentSessionStatus) -> Self
pub fn new(status: SlackAgentSessionStatus) -> Self
Creates a new SlackApiAgentsSessionsSetStatusRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn status(&mut self, value: SlackAgentSessionStatus) -> &mut Self
pub fn status(&mut self, value: SlackAgentSessionStatus) -> &mut Self
Sets status to value.
Sourcepub fn with_status(self, value: SlackAgentSessionStatus) -> Self
pub fn with_status(self, value: SlackAgentSessionStatus) -> Self
Returns self with status set to value.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to Some(value).
Sourcepub fn reset_channel_id(&mut self) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
Sets channel_id to None.
Sourcepub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel_id to the given Option.
Sourcepub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
Returns self with channel_id set to Some(value).
Sourcepub fn without_channel_id(self) -> Self
pub fn without_channel_id(self) -> Self
Returns self with channel_id set to None.
Sourcepub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
Returns self with channel_id set to the given Option.
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 reset_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title 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 Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.
Sourcepub fn opt_title(self, value: Option<String>) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Returns self with title set to the given Option.
Sourcepub fn initiator_user_id(&mut self, value: SlackUserId) -> &mut Self
pub fn initiator_user_id(&mut self, value: SlackUserId) -> &mut Self
Sets initiator_user_id to Some(value).
Sourcepub fn reset_initiator_user_id(&mut self) -> &mut Self
pub fn reset_initiator_user_id(&mut self) -> &mut Self
Sets initiator_user_id to None.
Sourcepub fn mopt_initiator_user_id(
&mut self,
value: Option<SlackUserId>,
) -> &mut Self
pub fn mopt_initiator_user_id( &mut self, value: Option<SlackUserId>, ) -> &mut Self
Sets initiator_user_id to the given Option.
Sourcepub fn with_initiator_user_id(self, value: SlackUserId) -> Self
pub fn with_initiator_user_id(self, value: SlackUserId) -> Self
Returns self with initiator_user_id set to Some(value).
Sourcepub fn without_initiator_user_id(self) -> Self
pub fn without_initiator_user_id(self) -> Self
Returns self with initiator_user_id set to None.
Sourcepub fn opt_initiator_user_id(self, value: Option<SlackUserId>) -> Self
pub fn opt_initiator_user_id(self, value: Option<SlackUserId>) -> Self
Returns self with initiator_user_id set to the given Option.
Sourcepub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
pub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
Sets icon_emoji to Some(value).
Sourcepub fn reset_icon_emoji(&mut self) -> &mut Self
pub fn reset_icon_emoji(&mut self) -> &mut Self
Sets icon_emoji to None.
Sourcepub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
pub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
Sets icon_emoji to the given Option.
Sourcepub fn with_icon_emoji(self, value: SlackEmoji) -> Self
pub fn with_icon_emoji(self, value: SlackEmoji) -> Self
Returns self with icon_emoji set to Some(value).
Sourcepub fn without_icon_emoji(self) -> Self
pub fn without_icon_emoji(self) -> Self
Returns self with icon_emoji set to None.
Sourcepub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
pub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
Returns self with icon_emoji set to the given Option.
Sourcepub fn reset_icon_url(&mut self) -> &mut Self
pub fn reset_icon_url(&mut self) -> &mut Self
Sets icon_url to None.
Sourcepub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
Sets icon_url to the given Option.
Sourcepub fn with_icon_url(self, value: Url) -> Self
pub fn with_icon_url(self, value: Url) -> Self
Returns self with icon_url set to Some(value).
Sourcepub fn without_icon_url(self) -> Self
pub fn without_icon_url(self) -> Self
Returns self with icon_url set to None.
Sourcepub fn opt_icon_url(self, value: Option<Url>) -> Self
pub fn opt_icon_url(self, value: Option<Url>) -> Self
Returns self with icon_url set to the given Option.
Sourcepub fn reset_username(&mut self) -> &mut Self
pub fn reset_username(&mut self) -> &mut Self
Sets username to None.
Sourcepub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
Sets username to the given Option.
Sourcepub fn with_username(self, value: String) -> Self
pub fn with_username(self, value: String) -> Self
Returns self with username set to Some(value).
Sourcepub fn without_username(self) -> Self
pub fn without_username(self) -> Self
Returns self with username set to None.
Sourcepub fn opt_username(self, value: Option<String>) -> Self
pub fn opt_username(self, value: Option<String>) -> Self
Returns self with username set to the given Option.