pub struct SlackAppManifestFeaturesSlashCommand {
pub command: String,
pub description: String,
pub should_escape: Option<bool>,
pub url: Option<Url>,
pub usage_hint: Option<String>,
}Fields§
§command: String§description: String§should_escape: Option<bool>§url: Option<Url>§usage_hint: Option<String>Implementations§
Source§impl SlackAppManifestFeaturesSlashCommand
impl SlackAppManifestFeaturesSlashCommand
Sourcepub fn new(command: String, description: String) -> Self
pub fn new(command: String, description: String) -> Self
Creates a new SlackAppManifestFeaturesSlashCommand from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_command(self, value: String) -> Self
pub fn with_command(self, value: String) -> Self
Returns self with command set to value.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Sets description to value.
Sourcepub fn with_description(self, value: String) -> Self
pub fn with_description(self, value: String) -> Self
Returns self with description set to value.
Sourcepub fn should_escape(&mut self, value: bool) -> &mut Self
pub fn should_escape(&mut self, value: bool) -> &mut Self
Sets should_escape to Some(value).
Sourcepub fn reset_should_escape(&mut self) -> &mut Self
pub fn reset_should_escape(&mut self) -> &mut Self
Sets should_escape to None.
Sourcepub fn mopt_should_escape(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_should_escape(&mut self, value: Option<bool>) -> &mut Self
Sets should_escape to the given Option.
Sourcepub fn with_should_escape(self, value: bool) -> Self
pub fn with_should_escape(self, value: bool) -> Self
Returns self with should_escape set to Some(value).
Sourcepub fn without_should_escape(self) -> Self
pub fn without_should_escape(self) -> Self
Returns self with should_escape set to None.
Sourcepub fn opt_should_escape(self, value: Option<bool>) -> Self
pub fn opt_should_escape(self, value: Option<bool>) -> Self
Returns self with should_escape set to the given Option.
Sourcepub fn without_url(self) -> Self
pub fn without_url(self) -> Self
Returns self with url set to None.
Sourcepub fn opt_url(self, value: Option<Url>) -> Self
pub fn opt_url(self, value: Option<Url>) -> Self
Returns self with url set to the given Option.
Sourcepub fn usage_hint(&mut self, value: String) -> &mut Self
pub fn usage_hint(&mut self, value: String) -> &mut Self
Sets usage_hint to Some(value).
Sourcepub fn reset_usage_hint(&mut self) -> &mut Self
pub fn reset_usage_hint(&mut self) -> &mut Self
Sets usage_hint to None.
Sourcepub fn mopt_usage_hint(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_usage_hint(&mut self, value: Option<String>) -> &mut Self
Sets usage_hint to the given Option.
Sourcepub fn with_usage_hint(self, value: String) -> Self
pub fn with_usage_hint(self, value: String) -> Self
Returns self with usage_hint set to Some(value).
Sourcepub fn without_usage_hint(self) -> Self
pub fn without_usage_hint(self) -> Self
Returns self with usage_hint set to None.
Sourcepub fn opt_usage_hint(self, value: Option<String>) -> Self
pub fn opt_usage_hint(self, value: Option<String>) -> Self
Returns self with usage_hint set to the given Option.