pub struct SlackAppManifestFeatures {
pub app_home: Option<SlackAppManifestFeaturesAppHome>,
pub bot_user: Option<SlackAppManifestFeaturesBotUser>,
pub shortcuts: Option<Vec<SlackAppManifestFeaturesShortcut>>,
pub slash_commands: Option<Vec<SlackAppManifestFeaturesSlashCommand>>,
pub unfurl_domains: Option<Vec<String>>,
pub workflow_steps: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>,
}Fields§
§app_home: Option<SlackAppManifestFeaturesAppHome>§bot_user: Option<SlackAppManifestFeaturesBotUser>§shortcuts: Option<Vec<SlackAppManifestFeaturesShortcut>>§slash_commands: Option<Vec<SlackAppManifestFeaturesSlashCommand>>§unfurl_domains: Option<Vec<String>>§workflow_steps: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>Implementations§
Source§impl SlackAppManifestFeatures
impl SlackAppManifestFeatures
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAppManifestFeatures from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn app_home(&mut self, value: SlackAppManifestFeaturesAppHome) -> &mut Self
pub fn app_home(&mut self, value: SlackAppManifestFeaturesAppHome) -> &mut Self
Sets app_home to Some(value).
Sourcepub fn reset_app_home(&mut self) -> &mut Self
pub fn reset_app_home(&mut self) -> &mut Self
Sets app_home to None.
Sourcepub fn mopt_app_home(
&mut self,
value: Option<SlackAppManifestFeaturesAppHome>,
) -> &mut Self
pub fn mopt_app_home( &mut self, value: Option<SlackAppManifestFeaturesAppHome>, ) -> &mut Self
Sets app_home to the given Option.
Sourcepub fn with_app_home(self, value: SlackAppManifestFeaturesAppHome) -> Self
pub fn with_app_home(self, value: SlackAppManifestFeaturesAppHome) -> Self
Returns self with app_home set to Some(value).
Sourcepub fn without_app_home(self) -> Self
pub fn without_app_home(self) -> Self
Returns self with app_home set to None.
Sourcepub fn opt_app_home(
self,
value: Option<SlackAppManifestFeaturesAppHome>,
) -> Self
pub fn opt_app_home( self, value: Option<SlackAppManifestFeaturesAppHome>, ) -> Self
Returns self with app_home set to the given Option.
Sourcepub fn bot_user(&mut self, value: SlackAppManifestFeaturesBotUser) -> &mut Self
pub fn bot_user(&mut self, value: SlackAppManifestFeaturesBotUser) -> &mut Self
Sets bot_user to Some(value).
Sourcepub fn reset_bot_user(&mut self) -> &mut Self
pub fn reset_bot_user(&mut self) -> &mut Self
Sets bot_user to None.
Sourcepub fn mopt_bot_user(
&mut self,
value: Option<SlackAppManifestFeaturesBotUser>,
) -> &mut Self
pub fn mopt_bot_user( &mut self, value: Option<SlackAppManifestFeaturesBotUser>, ) -> &mut Self
Sets bot_user to the given Option.
Sourcepub fn with_bot_user(self, value: SlackAppManifestFeaturesBotUser) -> Self
pub fn with_bot_user(self, value: SlackAppManifestFeaturesBotUser) -> Self
Returns self with bot_user set to Some(value).
Sourcepub fn without_bot_user(self) -> Self
pub fn without_bot_user(self) -> Self
Returns self with bot_user set to None.
Sourcepub fn opt_bot_user(
self,
value: Option<SlackAppManifestFeaturesBotUser>,
) -> Self
pub fn opt_bot_user( self, value: Option<SlackAppManifestFeaturesBotUser>, ) -> Self
Returns self with bot_user set to the given Option.
Sourcepub fn shortcuts(
&mut self,
value: Vec<SlackAppManifestFeaturesShortcut>,
) -> &mut Self
pub fn shortcuts( &mut self, value: Vec<SlackAppManifestFeaturesShortcut>, ) -> &mut Self
Sets shortcuts to Some(value).
Sourcepub fn reset_shortcuts(&mut self) -> &mut Self
pub fn reset_shortcuts(&mut self) -> &mut Self
Sets shortcuts to None.
Sourcepub fn mopt_shortcuts(
&mut self,
value: Option<Vec<SlackAppManifestFeaturesShortcut>>,
) -> &mut Self
pub fn mopt_shortcuts( &mut self, value: Option<Vec<SlackAppManifestFeaturesShortcut>>, ) -> &mut Self
Sets shortcuts to the given Option.
Sourcepub fn with_shortcuts(
self,
value: Vec<SlackAppManifestFeaturesShortcut>,
) -> Self
pub fn with_shortcuts( self, value: Vec<SlackAppManifestFeaturesShortcut>, ) -> Self
Returns self with shortcuts set to Some(value).
Sourcepub fn without_shortcuts(self) -> Self
pub fn without_shortcuts(self) -> Self
Returns self with shortcuts set to None.
Sourcepub fn opt_shortcuts(
self,
value: Option<Vec<SlackAppManifestFeaturesShortcut>>,
) -> Self
pub fn opt_shortcuts( self, value: Option<Vec<SlackAppManifestFeaturesShortcut>>, ) -> Self
Returns self with shortcuts set to the given Option.
Sourcepub fn slash_commands(
&mut self,
value: Vec<SlackAppManifestFeaturesSlashCommand>,
) -> &mut Self
pub fn slash_commands( &mut self, value: Vec<SlackAppManifestFeaturesSlashCommand>, ) -> &mut Self
Sets slash_commands to Some(value).
Sourcepub fn reset_slash_commands(&mut self) -> &mut Self
pub fn reset_slash_commands(&mut self) -> &mut Self
Sets slash_commands to None.
Sourcepub fn mopt_slash_commands(
&mut self,
value: Option<Vec<SlackAppManifestFeaturesSlashCommand>>,
) -> &mut Self
pub fn mopt_slash_commands( &mut self, value: Option<Vec<SlackAppManifestFeaturesSlashCommand>>, ) -> &mut Self
Sets slash_commands to the given Option.
Sourcepub fn with_slash_commands(
self,
value: Vec<SlackAppManifestFeaturesSlashCommand>,
) -> Self
pub fn with_slash_commands( self, value: Vec<SlackAppManifestFeaturesSlashCommand>, ) -> Self
Returns self with slash_commands set to Some(value).
Sourcepub fn without_slash_commands(self) -> Self
pub fn without_slash_commands(self) -> Self
Returns self with slash_commands set to None.
Sourcepub fn opt_slash_commands(
self,
value: Option<Vec<SlackAppManifestFeaturesSlashCommand>>,
) -> Self
pub fn opt_slash_commands( self, value: Option<Vec<SlackAppManifestFeaturesSlashCommand>>, ) -> Self
Returns self with slash_commands set to the given Option.
Sourcepub fn unfurl_domains(&mut self, value: Vec<String>) -> &mut Self
pub fn unfurl_domains(&mut self, value: Vec<String>) -> &mut Self
Sets unfurl_domains to Some(value).
Sourcepub fn reset_unfurl_domains(&mut self) -> &mut Self
pub fn reset_unfurl_domains(&mut self) -> &mut Self
Sets unfurl_domains to None.
Sourcepub fn mopt_unfurl_domains(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn mopt_unfurl_domains(&mut self, value: Option<Vec<String>>) -> &mut Self
Sets unfurl_domains to the given Option.
Sourcepub fn with_unfurl_domains(self, value: Vec<String>) -> Self
pub fn with_unfurl_domains(self, value: Vec<String>) -> Self
Returns self with unfurl_domains set to Some(value).
Sourcepub fn without_unfurl_domains(self) -> Self
pub fn without_unfurl_domains(self) -> Self
Returns self with unfurl_domains set to None.
Sourcepub fn opt_unfurl_domains(self, value: Option<Vec<String>>) -> Self
pub fn opt_unfurl_domains(self, value: Option<Vec<String>>) -> Self
Returns self with unfurl_domains set to the given Option.
Sourcepub fn workflow_steps(
&mut self,
value: Vec<SlackAppManifestFeaturesWorkflowStep>,
) -> &mut Self
pub fn workflow_steps( &mut self, value: Vec<SlackAppManifestFeaturesWorkflowStep>, ) -> &mut Self
Sets workflow_steps to Some(value).
Sourcepub fn reset_workflow_steps(&mut self) -> &mut Self
pub fn reset_workflow_steps(&mut self) -> &mut Self
Sets workflow_steps to None.
Sourcepub fn mopt_workflow_steps(
&mut self,
value: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>,
) -> &mut Self
pub fn mopt_workflow_steps( &mut self, value: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>, ) -> &mut Self
Sets workflow_steps to the given Option.
Sourcepub fn with_workflow_steps(
self,
value: Vec<SlackAppManifestFeaturesWorkflowStep>,
) -> Self
pub fn with_workflow_steps( self, value: Vec<SlackAppManifestFeaturesWorkflowStep>, ) -> Self
Returns self with workflow_steps set to Some(value).
Sourcepub fn without_workflow_steps(self) -> Self
pub fn without_workflow_steps(self) -> Self
Returns self with workflow_steps set to None.
Sourcepub fn opt_workflow_steps(
self,
value: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>,
) -> Self
pub fn opt_workflow_steps( self, value: Option<Vec<SlackAppManifestFeaturesWorkflowStep>>, ) -> Self
Returns self with workflow_steps set to the given Option.