pub struct SlackInteractionActionMessageContainer {
pub message_ts: SlackTs,
pub channel_id: Option<SlackChannelId>,
pub is_ephemeral: Option<bool>,
pub is_app_unfurl: Option<bool>,
}Fields§
§message_ts: SlackTs§channel_id: Option<SlackChannelId>§is_ephemeral: Option<bool>§is_app_unfurl: Option<bool>Implementations§
Source§impl SlackInteractionActionMessageContainer
impl SlackInteractionActionMessageContainer
Sourcepub fn new(message_ts: SlackTs) -> Self
pub fn new(message_ts: SlackTs) -> Self
Creates a new SlackInteractionActionMessageContainer from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn message_ts(&mut self, value: SlackTs) -> &mut Self
pub fn message_ts(&mut self, value: SlackTs) -> &mut Self
Sets message_ts to value.
Sourcepub fn with_message_ts(self, value: SlackTs) -> Self
pub fn with_message_ts(self, value: SlackTs) -> Self
Returns self with message_ts 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 is_ephemeral(&mut self, value: bool) -> &mut Self
pub fn is_ephemeral(&mut self, value: bool) -> &mut Self
Sets is_ephemeral to Some(value).
Sourcepub fn reset_is_ephemeral(&mut self) -> &mut Self
pub fn reset_is_ephemeral(&mut self) -> &mut Self
Sets is_ephemeral to None.
Sourcepub fn mopt_is_ephemeral(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_ephemeral(&mut self, value: Option<bool>) -> &mut Self
Sets is_ephemeral to the given Option.
Sourcepub fn with_is_ephemeral(self, value: bool) -> Self
pub fn with_is_ephemeral(self, value: bool) -> Self
Returns self with is_ephemeral set to Some(value).
Sourcepub fn without_is_ephemeral(self) -> Self
pub fn without_is_ephemeral(self) -> Self
Returns self with is_ephemeral set to None.
Sourcepub fn opt_is_ephemeral(self, value: Option<bool>) -> Self
pub fn opt_is_ephemeral(self, value: Option<bool>) -> Self
Returns self with is_ephemeral set to the given Option.
Sourcepub fn is_app_unfurl(&mut self, value: bool) -> &mut Self
pub fn is_app_unfurl(&mut self, value: bool) -> &mut Self
Sets is_app_unfurl to Some(value).
Sourcepub fn reset_is_app_unfurl(&mut self) -> &mut Self
pub fn reset_is_app_unfurl(&mut self) -> &mut Self
Sets is_app_unfurl to None.
Sourcepub fn mopt_is_app_unfurl(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_app_unfurl(&mut self, value: Option<bool>) -> &mut Self
Sets is_app_unfurl to the given Option.
Sourcepub fn with_is_app_unfurl(self, value: bool) -> Self
pub fn with_is_app_unfurl(self, value: bool) -> Self
Returns self with is_app_unfurl set to Some(value).
Sourcepub fn without_is_app_unfurl(self) -> Self
pub fn without_is_app_unfurl(self) -> Self
Returns self with is_app_unfurl set to None.
Sourcepub fn opt_is_app_unfurl(self, value: Option<bool>) -> Self
pub fn opt_is_app_unfurl(self, value: Option<bool>) -> Self
Returns self with is_app_unfurl set to the given Option.