pub struct SlackStatefulStateParams {
pub id: SlackViewId,
pub team_id: SlackTeamId,
pub state: Option<SlackViewState>,
pub hash: String,
pub previous_view_id: Option<SlackViewId>,
pub root_view_id: Option<SlackViewId>,
pub app_id: Option<SlackAppId>,
pub bot_id: Option<SlackBotId>,
}Fields§
§id: SlackViewId§team_id: SlackTeamId§state: Option<SlackViewState>§hash: String§previous_view_id: Option<SlackViewId>§root_view_id: Option<SlackViewId>§app_id: Option<SlackAppId>§bot_id: Option<SlackBotId>Implementations§
Source§impl SlackStatefulStateParams
impl SlackStatefulStateParams
Sourcepub fn new(id: SlackViewId, team_id: SlackTeamId, hash: String) -> Self
pub fn new(id: SlackViewId, team_id: SlackTeamId, hash: String) -> Self
Creates a new SlackStatefulStateParams from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackViewId) -> &mut Self
pub fn id(&mut self, value: SlackViewId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackViewId) -> Self
pub fn with_id(self, value: SlackViewId) -> Self
Returns self with id set to value.
Sourcepub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets team_id to value.
Sourcepub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
Returns self with team_id set to value.
Sourcepub fn state(&mut self, value: SlackViewState) -> &mut Self
pub fn state(&mut self, value: SlackViewState) -> &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<SlackViewState>) -> &mut Self
pub fn mopt_state(&mut self, value: Option<SlackViewState>) -> &mut Self
Sets state to the given Option.
Sourcepub fn with_state(self, value: SlackViewState) -> Self
pub fn with_state(self, value: SlackViewState) -> 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<SlackViewState>) -> Self
pub fn opt_state(self, value: Option<SlackViewState>) -> Self
Returns self with state set to the given Option.
Sourcepub fn previous_view_id(&mut self, value: SlackViewId) -> &mut Self
pub fn previous_view_id(&mut self, value: SlackViewId) -> &mut Self
Sets previous_view_id to Some(value).
Sourcepub fn reset_previous_view_id(&mut self) -> &mut Self
pub fn reset_previous_view_id(&mut self) -> &mut Self
Sets previous_view_id to None.
Sourcepub fn mopt_previous_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
pub fn mopt_previous_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
Sets previous_view_id to the given Option.
Sourcepub fn with_previous_view_id(self, value: SlackViewId) -> Self
pub fn with_previous_view_id(self, value: SlackViewId) -> Self
Returns self with previous_view_id set to Some(value).
Sourcepub fn without_previous_view_id(self) -> Self
pub fn without_previous_view_id(self) -> Self
Returns self with previous_view_id set to None.
Sourcepub fn opt_previous_view_id(self, value: Option<SlackViewId>) -> Self
pub fn opt_previous_view_id(self, value: Option<SlackViewId>) -> Self
Returns self with previous_view_id set to the given Option.
Sourcepub fn root_view_id(&mut self, value: SlackViewId) -> &mut Self
pub fn root_view_id(&mut self, value: SlackViewId) -> &mut Self
Sets root_view_id to Some(value).
Sourcepub fn reset_root_view_id(&mut self) -> &mut Self
pub fn reset_root_view_id(&mut self) -> &mut Self
Sets root_view_id to None.
Sourcepub fn mopt_root_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
pub fn mopt_root_view_id(&mut self, value: Option<SlackViewId>) -> &mut Self
Sets root_view_id to the given Option.
Sourcepub fn with_root_view_id(self, value: SlackViewId) -> Self
pub fn with_root_view_id(self, value: SlackViewId) -> Self
Returns self with root_view_id set to Some(value).
Sourcepub fn without_root_view_id(self) -> Self
pub fn without_root_view_id(self) -> Self
Returns self with root_view_id set to None.
Sourcepub fn opt_root_view_id(self, value: Option<SlackViewId>) -> Self
pub fn opt_root_view_id(self, value: Option<SlackViewId>) -> Self
Returns self with root_view_id set to the given Option.
Sourcepub fn app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn app_id(&mut self, value: SlackAppId) -> &mut Self
Sets app_id to Some(value).
Sourcepub fn reset_app_id(&mut self) -> &mut Self
pub fn reset_app_id(&mut self) -> &mut Self
Sets app_id to None.
Sourcepub fn mopt_app_id(&mut self, value: Option<SlackAppId>) -> &mut Self
pub fn mopt_app_id(&mut self, value: Option<SlackAppId>) -> &mut Self
Sets app_id to the given Option.
Sourcepub fn with_app_id(self, value: SlackAppId) -> Self
pub fn with_app_id(self, value: SlackAppId) -> Self
Returns self with app_id set to Some(value).
Sourcepub fn without_app_id(self) -> Self
pub fn without_app_id(self) -> Self
Returns self with app_id set to None.
Sourcepub fn opt_app_id(self, value: Option<SlackAppId>) -> Self
pub fn opt_app_id(self, value: Option<SlackAppId>) -> Self
Returns self with app_id set to the given Option.
Sourcepub fn bot_id(&mut self, value: SlackBotId) -> &mut Self
pub fn bot_id(&mut self, value: SlackBotId) -> &mut Self
Sets bot_id to Some(value).
Sourcepub fn reset_bot_id(&mut self) -> &mut Self
pub fn reset_bot_id(&mut self) -> &mut Self
Sets bot_id to None.
Sourcepub fn mopt_bot_id(&mut self, value: Option<SlackBotId>) -> &mut Self
pub fn mopt_bot_id(&mut self, value: Option<SlackBotId>) -> &mut Self
Sets bot_id to the given Option.
Sourcepub fn with_bot_id(self, value: SlackBotId) -> Self
pub fn with_bot_id(self, value: SlackBotId) -> Self
Returns self with bot_id set to Some(value).
Sourcepub fn without_bot_id(self) -> Self
pub fn without_bot_id(self) -> Self
Returns self with bot_id set to None.
Sourcepub fn opt_bot_id(self, value: Option<SlackBotId>) -> Self
pub fn opt_bot_id(self, value: Option<SlackBotId>) -> Self
Returns self with bot_id set to the given Option.