pub struct SlackInteractionMessageActionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub channel: Option<SlackBasicChannelInfo>,
pub message: Option<SlackHistoryMessage>,
pub callback_id: SlackCallbackId,
pub trigger_id: SlackTriggerId,
pub response_url: SlackResponseUrl,
pub actions: Option<Vec<SlackInteractionActionInfo>>,
}Fields§
§team: SlackBasicTeamInfo§user: SlackBasicUserInfo§channel: Option<SlackBasicChannelInfo>§message: Option<SlackHistoryMessage>§callback_id: SlackCallbackId§trigger_id: SlackTriggerId§response_url: SlackResponseUrl§actions: Option<Vec<SlackInteractionActionInfo>>Implementations§
Source§impl SlackInteractionMessageActionEvent
impl SlackInteractionMessageActionEvent
Sourcepub fn new(
team: SlackBasicTeamInfo,
user: SlackBasicUserInfo,
callback_id: SlackCallbackId,
trigger_id: SlackTriggerId,
response_url: SlackResponseUrl,
) -> Self
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, callback_id: SlackCallbackId, trigger_id: SlackTriggerId, response_url: SlackResponseUrl, ) -> Self
Creates a new SlackInteractionMessageActionEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn team(&mut self, value: SlackBasicTeamInfo) -> &mut Self
pub fn team(&mut self, value: SlackBasicTeamInfo) -> &mut Self
Sets team to value.
Sourcepub fn with_team(self, value: SlackBasicTeamInfo) -> Self
pub fn with_team(self, value: SlackBasicTeamInfo) -> Self
Returns self with team set to value.
Sourcepub fn user(&mut self, value: SlackBasicUserInfo) -> &mut Self
pub fn user(&mut self, value: SlackBasicUserInfo) -> &mut Self
Sets user to value.
Sourcepub fn with_user(self, value: SlackBasicUserInfo) -> Self
pub fn with_user(self, value: SlackBasicUserInfo) -> Self
Returns self with user set to value.
Sourcepub fn channel(&mut self, value: SlackBasicChannelInfo) -> &mut Self
pub fn channel(&mut self, value: SlackBasicChannelInfo) -> &mut Self
Sets channel to Some(value).
Sourcepub fn reset_channel(&mut self) -> &mut Self
pub fn reset_channel(&mut self) -> &mut Self
Sets channel to None.
Sourcepub fn mopt_channel(
&mut self,
value: Option<SlackBasicChannelInfo>,
) -> &mut Self
pub fn mopt_channel( &mut self, value: Option<SlackBasicChannelInfo>, ) -> &mut Self
Sets channel to the given Option.
Sourcepub fn with_channel(self, value: SlackBasicChannelInfo) -> Self
pub fn with_channel(self, value: SlackBasicChannelInfo) -> Self
Returns self with channel set to Some(value).
Sourcepub fn without_channel(self) -> Self
pub fn without_channel(self) -> Self
Returns self with channel set to None.
Sourcepub fn opt_channel(self, value: Option<SlackBasicChannelInfo>) -> Self
pub fn opt_channel(self, value: Option<SlackBasicChannelInfo>) -> Self
Returns self with channel set to the given Option.
Sourcepub fn message(&mut self, value: SlackHistoryMessage) -> &mut Self
pub fn message(&mut self, value: SlackHistoryMessage) -> &mut Self
Sets message to Some(value).
Sourcepub fn reset_message(&mut self) -> &mut Self
pub fn reset_message(&mut self) -> &mut Self
Sets message to None.
Sourcepub fn mopt_message(&mut self, value: Option<SlackHistoryMessage>) -> &mut Self
pub fn mopt_message(&mut self, value: Option<SlackHistoryMessage>) -> &mut Self
Sets message to the given Option.
Sourcepub fn with_message(self, value: SlackHistoryMessage) -> Self
pub fn with_message(self, value: SlackHistoryMessage) -> Self
Returns self with message set to Some(value).
Sourcepub fn without_message(self) -> Self
pub fn without_message(self) -> Self
Returns self with message set to None.
Sourcepub fn opt_message(self, value: Option<SlackHistoryMessage>) -> Self
pub fn opt_message(self, value: Option<SlackHistoryMessage>) -> Self
Returns self with message set to the given Option.
Sourcepub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
Sets callback_id to value.
Sourcepub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
Returns self with callback_id set to value.
Sourcepub fn trigger_id(&mut self, value: SlackTriggerId) -> &mut Self
pub fn trigger_id(&mut self, value: SlackTriggerId) -> &mut Self
Sets trigger_id to value.
Sourcepub fn with_trigger_id(self, value: SlackTriggerId) -> Self
pub fn with_trigger_id(self, value: SlackTriggerId) -> Self
Returns self with trigger_id set to value.
Sourcepub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
pub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
Sets response_url to value.
Sourcepub fn with_response_url(self, value: SlackResponseUrl) -> Self
pub fn with_response_url(self, value: SlackResponseUrl) -> Self
Returns self with response_url set to value.
Sourcepub fn actions(&mut self, value: Vec<SlackInteractionActionInfo>) -> &mut Self
pub fn actions(&mut self, value: Vec<SlackInteractionActionInfo>) -> &mut Self
Sets actions to Some(value).
Sourcepub fn reset_actions(&mut self) -> &mut Self
pub fn reset_actions(&mut self) -> &mut Self
Sets actions to None.
Sourcepub fn mopt_actions(
&mut self,
value: Option<Vec<SlackInteractionActionInfo>>,
) -> &mut Self
pub fn mopt_actions( &mut self, value: Option<Vec<SlackInteractionActionInfo>>, ) -> &mut Self
Sets actions to the given Option.
Sourcepub fn with_actions(self, value: Vec<SlackInteractionActionInfo>) -> Self
pub fn with_actions(self, value: Vec<SlackInteractionActionInfo>) -> Self
Returns self with actions set to Some(value).
Sourcepub fn without_actions(self) -> Self
pub fn without_actions(self) -> Self
Returns self with actions set to None.
Sourcepub fn opt_actions(self, value: Option<Vec<SlackInteractionActionInfo>>) -> Self
pub fn opt_actions(self, value: Option<Vec<SlackInteractionActionInfo>>) -> Self
Returns self with actions set to the given Option.