pub struct SlackInteractionDialogueSubmissionEvent {
pub team: SlackBasicTeamInfo,
pub user: SlackBasicUserInfo,
pub channel: Option<SlackBasicChannelInfo>,
pub callback_id: Option<SlackCallbackId>,
pub state: Option<String>,
pub submission: HashMap<String, String>,
}Fields§
§team: SlackBasicTeamInfo§user: SlackBasicUserInfo§channel: Option<SlackBasicChannelInfo>§callback_id: Option<SlackCallbackId>§state: Option<String>§submission: HashMap<String, String>Implementations§
Source§impl SlackInteractionDialogueSubmissionEvent
impl SlackInteractionDialogueSubmissionEvent
Sourcepub fn new(
team: SlackBasicTeamInfo,
user: SlackBasicUserInfo,
submission: HashMap<String, String>,
) -> Self
pub fn new( team: SlackBasicTeamInfo, user: SlackBasicUserInfo, submission: HashMap<String, String>, ) -> Self
Creates a new SlackInteractionDialogueSubmissionEvent 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 callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
Sets callback_id to Some(value).
Sourcepub fn reset_callback_id(&mut self) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
Sets callback_id to None.
Sourcepub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
Sets callback_id to the given Option.
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 Some(value).
Sourcepub fn without_callback_id(self) -> Self
pub fn without_callback_id(self) -> Self
Returns self with callback_id set to None.
Sourcepub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
Returns self with callback_id set to the given Option.
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<String>) -> &mut Self
pub fn mopt_state(&mut self, value: Option<String>) -> &mut Self
Sets state to the given Option.
Sourcepub fn with_state(self, value: String) -> Self
pub fn with_state(self, value: String) -> 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<String>) -> Self
pub fn opt_state(self, value: Option<String>) -> Self
Returns self with state set to the given Option.
Sourcepub fn submission(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn submission(&mut self, value: HashMap<String, String>) -> &mut Self
Sets submission to value.
Sourcepub fn with_submission(self, value: HashMap<String, String>) -> Self
pub fn with_submission(self, value: HashMap<String, String>) -> Self
Returns self with submission set to value.