pub struct SlackInteractionBlockSuggestionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub api_app_id: SlackAppId,
pub block_id: SlackBlockId,
pub action_id: SlackActionId,
pub container: SlackInteractionActionContainer,
pub channel: Option<SlackBasicChannelInfo>,
pub view: Option<SlackView>,
pub value: String,
pub message: Option<SlackHistoryMessage>,
}Fields§
§team: SlackBasicTeamInfo§user: SlackBasicUserInfo§api_app_id: SlackAppId§block_id: SlackBlockId§action_id: SlackActionId§container: SlackInteractionActionContainer§channel: Option<SlackBasicChannelInfo>§view: Option<SlackView>§value: String§message: Option<SlackHistoryMessage>Implementations§
Source§impl SlackInteractionBlockSuggestionEvent
impl SlackInteractionBlockSuggestionEvent
Sourcepub fn new(
team: SlackBasicTeamInfo,
user: SlackBasicUserInfo,
api_app_id: SlackAppId,
block_id: SlackBlockId,
action_id: SlackActionId,
container: SlackInteractionActionContainer,
value: String,
) -> Self
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, api_app_id: SlackAppId, block_id: SlackBlockId, action_id: SlackActionId, container: SlackInteractionActionContainer, value: String, ) -> Self
Creates a new SlackInteractionBlockSuggestionEvent 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 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 block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to value.
Sourcepub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
Returns self with block_id set to value.
Sourcepub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
Sets action_id to value.
Sourcepub fn with_action_id(self, value: SlackActionId) -> Self
pub fn with_action_id(self, value: SlackActionId) -> Self
Returns self with action_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 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 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 with_value(self, value: String) -> Self
pub fn with_value(self, value: String) -> Self
Returns self with value set to value.
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.