pub struct SlackInteractionActionInfo {
pub action_type: SlackActionType,
pub action_id: SlackActionId,
pub block_id: Option<SlackBlockId>,
pub text: Option<SlackBlockText>,
pub value: Option<String>,
pub selected_option: Option<SlackBlockChoiceItem<SlackBlockText>>,
pub selected_options: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>,
pub action_ts: Option<SlackTs>,
}Fields§
§action_type: SlackActionType§action_id: SlackActionId§block_id: Option<SlackBlockId>§text: Option<SlackBlockText>§value: Option<String>§selected_option: Option<SlackBlockChoiceItem<SlackBlockText>>§selected_options: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>§action_ts: Option<SlackTs>Implementations§
Source§impl SlackInteractionActionInfo
impl SlackInteractionActionInfo
Sourcepub fn new(action_type: SlackActionType, action_id: SlackActionId) -> Self
pub fn new(action_type: SlackActionType, action_id: SlackActionId) -> Self
Creates a new SlackInteractionActionInfo from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn action_type(&mut self, value: SlackActionType) -> &mut Self
pub fn action_type(&mut self, value: SlackActionType) -> &mut Self
Sets action_type to value.
Sourcepub fn with_action_type(self, value: SlackActionType) -> Self
pub fn with_action_type(self, value: SlackActionType) -> Self
Returns self with action_type 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 block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to Some(value).
Sourcepub fn reset_block_id(&mut self) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
Sets block_id to None.
Sourcepub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
Sets block_id to the given Option.
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 Some(value).
Sourcepub fn without_block_id(self) -> Self
pub fn without_block_id(self) -> Self
Returns self with block_id set to None.
Sourcepub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
Returns self with block_id set to the given Option.
Sourcepub fn text(&mut self, value: SlackBlockText) -> &mut Self
pub fn text(&mut self, value: SlackBlockText) -> &mut Self
Sets text to Some(value).
Sourcepub fn reset_text(&mut self) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
Sets text to None.
Sourcepub fn mopt_text(&mut self, value: Option<SlackBlockText>) -> &mut Self
pub fn mopt_text(&mut self, value: Option<SlackBlockText>) -> &mut Self
Sets text to the given Option.
Sourcepub fn with_text(self, value: SlackBlockText) -> Self
pub fn with_text(self, value: SlackBlockText) -> Self
Returns self with text set to Some(value).
Sourcepub fn without_text(self) -> Self
pub fn without_text(self) -> Self
Returns self with text set to None.
Sourcepub fn opt_text(self, value: Option<SlackBlockText>) -> Self
pub fn opt_text(self, value: Option<SlackBlockText>) -> Self
Returns self with text set to the given Option.
Sourcepub fn reset_value(&mut self) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
Sets value to None.
Sourcepub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
Sets value 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 Some(value).
Sourcepub fn without_value(self) -> Self
pub fn without_value(self) -> Self
Returns self with value set to None.
Sourcepub fn opt_value(self, value: Option<String>) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
Returns self with value set to the given Option.
Sourcepub fn selected_option(
&mut self,
value: SlackBlockChoiceItem<SlackBlockText>,
) -> &mut Self
pub fn selected_option( &mut self, value: SlackBlockChoiceItem<SlackBlockText>, ) -> &mut Self
Sets selected_option to Some(value).
Sourcepub fn reset_selected_option(&mut self) -> &mut Self
pub fn reset_selected_option(&mut self) -> &mut Self
Sets selected_option to None.
Sourcepub fn mopt_selected_option(
&mut self,
value: Option<SlackBlockChoiceItem<SlackBlockText>>,
) -> &mut Self
pub fn mopt_selected_option( &mut self, value: Option<SlackBlockChoiceItem<SlackBlockText>>, ) -> &mut Self
Sets selected_option to the given Option.
Sourcepub fn with_selected_option(
self,
value: SlackBlockChoiceItem<SlackBlockText>,
) -> Self
pub fn with_selected_option( self, value: SlackBlockChoiceItem<SlackBlockText>, ) -> Self
Returns self with selected_option set to Some(value).
Sourcepub fn without_selected_option(self) -> Self
pub fn without_selected_option(self) -> Self
Returns self with selected_option set to None.
Sourcepub fn opt_selected_option(
self,
value: Option<SlackBlockChoiceItem<SlackBlockText>>,
) -> Self
pub fn opt_selected_option( self, value: Option<SlackBlockChoiceItem<SlackBlockText>>, ) -> Self
Returns self with selected_option set to the given Option.
Sourcepub fn selected_options(
&mut self,
value: Vec<SlackBlockChoiceItem<SlackBlockText>>,
) -> &mut Self
pub fn selected_options( &mut self, value: Vec<SlackBlockChoiceItem<SlackBlockText>>, ) -> &mut Self
Sets selected_options to Some(value).
Sourcepub fn reset_selected_options(&mut self) -> &mut Self
pub fn reset_selected_options(&mut self) -> &mut Self
Sets selected_options to None.
Sourcepub fn mopt_selected_options(
&mut self,
value: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>,
) -> &mut Self
pub fn mopt_selected_options( &mut self, value: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>, ) -> &mut Self
Sets selected_options to the given Option.
Sourcepub fn with_selected_options(
self,
value: Vec<SlackBlockChoiceItem<SlackBlockText>>,
) -> Self
pub fn with_selected_options( self, value: Vec<SlackBlockChoiceItem<SlackBlockText>>, ) -> Self
Returns self with selected_options set to Some(value).
Sourcepub fn without_selected_options(self) -> Self
pub fn without_selected_options(self) -> Self
Returns self with selected_options set to None.
Sourcepub fn opt_selected_options(
self,
value: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>,
) -> Self
pub fn opt_selected_options( self, value: Option<Vec<SlackBlockChoiceItem<SlackBlockText>>>, ) -> Self
Returns self with selected_options set to the given Option.
Sourcepub fn reset_action_ts(&mut self) -> &mut Self
pub fn reset_action_ts(&mut self) -> &mut Self
Sets action_ts to None.
Sourcepub fn mopt_action_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_action_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets action_ts to the given Option.
Sourcepub fn with_action_ts(self, value: SlackTs) -> Self
pub fn with_action_ts(self, value: SlackTs) -> Self
Returns self with action_ts set to Some(value).
Sourcepub fn without_action_ts(self) -> Self
pub fn without_action_ts(self) -> Self
Returns self with action_ts set to None.
Sourcepub fn opt_action_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_action_ts(self, value: Option<SlackTs>) -> Self
Returns self with action_ts set to the given Option.