pub struct SlackInteractionBlockActionsEvent {
pub team: SlackBasicTeamInfo,
pub user: Option<SlackBasicUserInfo>,
pub api_app_id: SlackAppId,
pub container: SlackInteractionActionContainer,
pub trigger_id: SlackTriggerId,
pub channel: Option<SlackBasicChannelInfo>,
pub message: Option<SlackHistoryMessage>,
pub view: Option<SlackView>,
pub response_url: Option<SlackResponseUrl>,
pub actions: Option<Vec<SlackInteractionActionInfo>>,
pub state: Option<SlackActionState>,
}Fields§
§team: SlackBasicTeamInfo§user: Option<SlackBasicUserInfo>§api_app_id: SlackAppId§container: SlackInteractionActionContainer§trigger_id: SlackTriggerId§channel: Option<SlackBasicChannelInfo>§message: Option<SlackHistoryMessage>§view: Option<SlackView>§response_url: Option<SlackResponseUrl>§actions: Option<Vec<SlackInteractionActionInfo>>§state: Option<SlackActionState>Implementations§
Source§impl SlackInteractionBlockActionsEvent
impl SlackInteractionBlockActionsEvent
Sourcepub fn new(
team: SlackBasicTeamInfo,
api_app_id: SlackAppId,
container: SlackInteractionActionContainer,
trigger_id: SlackTriggerId,
) -> Self
pub fn new( team: SlackBasicTeamInfo, api_app_id: SlackAppId, container: SlackInteractionActionContainer, trigger_id: SlackTriggerId, ) -> Self
Creates a new SlackInteractionBlockActionsEvent 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 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<SlackBasicUserInfo>) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackBasicUserInfo>) -> &mut Self
Sets user to the given Option.
Sourcepub fn with_user(self, value: SlackBasicUserInfo) -> Self
pub fn with_user(self, value: SlackBasicUserInfo) -> 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<SlackBasicUserInfo>) -> Self
pub fn opt_user(self, value: Option<SlackBasicUserInfo>) -> Self
Returns self with user set to the given Option.
Sourcepub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
Sets api_app_id to value.
Sourcepub fn with_api_app_id(self, value: SlackAppId) -> Self
pub fn with_api_app_id(self, value: SlackAppId) -> Self
Returns self with api_app_id set to value.
Sourcepub fn container(&mut self, value: SlackInteractionActionContainer) -> &mut Self
pub fn container(&mut self, value: SlackInteractionActionContainer) -> &mut Self
Sets container to value.
Sourcepub fn with_container(self, value: SlackInteractionActionContainer) -> Self
pub fn with_container(self, value: SlackInteractionActionContainer) -> Self
Returns self with container 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 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 reset_view(&mut self) -> &mut Self
pub fn reset_view(&mut self) -> &mut Self
Sets view to None.
Sourcepub fn mopt_view(&mut self, value: Option<SlackView>) -> &mut Self
pub fn mopt_view(&mut self, value: Option<SlackView>) -> &mut Self
Sets view to the given Option.
Sourcepub fn without_view(self) -> Self
pub fn without_view(self) -> Self
Returns self with view set to None.
Sourcepub fn opt_view(self, value: Option<SlackView>) -> Self
pub fn opt_view(self, value: Option<SlackView>) -> Self
Returns self with view set to the given Option.
Sourcepub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
pub fn response_url(&mut self, value: SlackResponseUrl) -> &mut Self
Sets response_url to Some(value).
Sourcepub fn reset_response_url(&mut self) -> &mut Self
pub fn reset_response_url(&mut self) -> &mut Self
Sets response_url to None.
Sourcepub fn mopt_response_url(
&mut self,
value: Option<SlackResponseUrl>,
) -> &mut Self
pub fn mopt_response_url( &mut self, value: Option<SlackResponseUrl>, ) -> &mut Self
Sets response_url to the given Option.
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 Some(value).
Sourcepub fn without_response_url(self) -> Self
pub fn without_response_url(self) -> Self
Returns self with response_url set to None.
Sourcepub fn opt_response_url(self, value: Option<SlackResponseUrl>) -> Self
pub fn opt_response_url(self, value: Option<SlackResponseUrl>) -> Self
Returns self with response_url set to the given Option.
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.
Sourcepub fn state(&mut self, value: SlackActionState) -> &mut Self
pub fn state(&mut self, value: SlackActionState) -> &mut Self
Sets state to Some(value).
Sourcepub fn reset_state(&mut self) -> &mut Self
pub fn reset_state(&mut self) -> &mut Self
Sets state to None.
Sourcepub fn mopt_state(&mut self, value: Option<SlackActionState>) -> &mut Self
pub fn mopt_state(&mut self, value: Option<SlackActionState>) -> &mut Self
Sets state to the given Option.
Sourcepub fn with_state(self, value: SlackActionState) -> Self
pub fn with_state(self, value: SlackActionState) -> Self
Returns self with state set to Some(value).
Sourcepub fn without_state(self) -> Self
pub fn without_state(self) -> Self
Returns self with state set to None.
Sourcepub fn opt_state(self, value: Option<SlackActionState>) -> Self
pub fn opt_state(self, value: Option<SlackActionState>) -> Self
Returns self with state set to the given Option.