pub struct SlackAppManifestDisplayInformation {
pub name: String,
pub description: Option<String>,
pub background_color: Option<String>,
pub long_description: Option<String>,
}Fields§
§name: String§description: Option<String>§background_color: Option<String>§long_description: Option<String>Implementations§
Source§impl SlackAppManifestDisplayInformation
impl SlackAppManifestDisplayInformation
Sourcepub fn new(name: String) -> Self
pub fn new(name: String) -> Self
Creates a new SlackAppManifestDisplayInformation from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Sets description to Some(value).
Sourcepub fn reset_description(&mut self) -> &mut Self
pub fn reset_description(&mut self) -> &mut Self
Sets description to None.
Sourcepub fn mopt_description(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_description(&mut self, value: Option<String>) -> &mut Self
Sets description to the given Option.
Sourcepub fn with_description(self, value: String) -> Self
pub fn with_description(self, value: String) -> Self
Returns self with description set to Some(value).
Sourcepub fn without_description(self) -> Self
pub fn without_description(self) -> Self
Returns self with description set to None.
Sourcepub fn opt_description(self, value: Option<String>) -> Self
pub fn opt_description(self, value: Option<String>) -> Self
Returns self with description set to the given Option.
Sourcepub fn background_color(&mut self, value: String) -> &mut Self
pub fn background_color(&mut self, value: String) -> &mut Self
Sets background_color to Some(value).
Sourcepub fn reset_background_color(&mut self) -> &mut Self
pub fn reset_background_color(&mut self) -> &mut Self
Sets background_color to None.
Sourcepub fn mopt_background_color(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_background_color(&mut self, value: Option<String>) -> &mut Self
Sets background_color to the given Option.
Sourcepub fn with_background_color(self, value: String) -> Self
pub fn with_background_color(self, value: String) -> Self
Returns self with background_color set to Some(value).
Sourcepub fn without_background_color(self) -> Self
pub fn without_background_color(self) -> Self
Returns self with background_color set to None.
Sourcepub fn opt_background_color(self, value: Option<String>) -> Self
pub fn opt_background_color(self, value: Option<String>) -> Self
Returns self with background_color set to the given Option.
Sourcepub fn long_description(&mut self, value: String) -> &mut Self
pub fn long_description(&mut self, value: String) -> &mut Self
Sets long_description to Some(value).
Sourcepub fn reset_long_description(&mut self) -> &mut Self
pub fn reset_long_description(&mut self) -> &mut Self
Sets long_description to None.
Sourcepub fn mopt_long_description(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_long_description(&mut self, value: Option<String>) -> &mut Self
Sets long_description to the given Option.
Sourcepub fn with_long_description(self, value: String) -> Self
pub fn with_long_description(self, value: String) -> Self
Returns self with long_description set to Some(value).
Sourcepub fn without_long_description(self) -> Self
pub fn without_long_description(self) -> Self
Returns self with long_description set to None.
Sourcepub fn opt_long_description(self, value: Option<String>) -> Self
pub fn opt_long_description(self, value: Option<String>) -> Self
Returns self with long_description set to the given Option.