pub struct SlackIcon {
pub image_original: Option<String>,
pub image_default: Option<bool>,
pub images: Option<SlackIconImages>,
}Fields§
§image_original: Option<String>§image_default: Option<bool>§images: Option<SlackIconImages>Implementations§
Source§impl SlackIcon
impl SlackIcon
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackIcon from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn image_original(&mut self, value: String) -> &mut Self
pub fn image_original(&mut self, value: String) -> &mut Self
Sets image_original to Some(value).
Sourcepub fn reset_image_original(&mut self) -> &mut Self
pub fn reset_image_original(&mut self) -> &mut Self
Sets image_original to None.
Sourcepub fn mopt_image_original(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_image_original(&mut self, value: Option<String>) -> &mut Self
Sets image_original to the given Option.
Sourcepub fn with_image_original(self, value: String) -> Self
pub fn with_image_original(self, value: String) -> Self
Returns self with image_original set to Some(value).
Sourcepub fn without_image_original(self) -> Self
pub fn without_image_original(self) -> Self
Returns self with image_original set to None.
Sourcepub fn opt_image_original(self, value: Option<String>) -> Self
pub fn opt_image_original(self, value: Option<String>) -> Self
Returns self with image_original set to the given Option.
Sourcepub fn image_default(&mut self, value: bool) -> &mut Self
pub fn image_default(&mut self, value: bool) -> &mut Self
Sets image_default to Some(value).
Sourcepub fn reset_image_default(&mut self) -> &mut Self
pub fn reset_image_default(&mut self) -> &mut Self
Sets image_default to None.
Sourcepub fn mopt_image_default(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_image_default(&mut self, value: Option<bool>) -> &mut Self
Sets image_default to the given Option.
Sourcepub fn with_image_default(self, value: bool) -> Self
pub fn with_image_default(self, value: bool) -> Self
Returns self with image_default set to Some(value).
Sourcepub fn without_image_default(self) -> Self
pub fn without_image_default(self) -> Self
Returns self with image_default set to None.
Sourcepub fn opt_image_default(self, value: Option<bool>) -> Self
pub fn opt_image_default(self, value: Option<bool>) -> Self
Returns self with image_default set to the given Option.
Sourcepub fn images(&mut self, value: SlackIconImages) -> &mut Self
pub fn images(&mut self, value: SlackIconImages) -> &mut Self
Sets images to Some(value).
Sourcepub fn reset_images(&mut self) -> &mut Self
pub fn reset_images(&mut self) -> &mut Self
Sets images to None.
Sourcepub fn mopt_images(&mut self, value: Option<SlackIconImages>) -> &mut Self
pub fn mopt_images(&mut self, value: Option<SlackIconImages>) -> &mut Self
Sets images to the given Option.
Sourcepub fn with_images(self, value: SlackIconImages) -> Self
pub fn with_images(self, value: SlackIconImages) -> Self
Returns self with images set to Some(value).
Sourcepub fn without_images(self) -> Self
pub fn without_images(self) -> Self
Returns self with images set to None.
Sourcepub fn opt_images(self, value: Option<SlackIconImages>) -> Self
pub fn opt_images(self, value: Option<SlackIconImages>) -> Self
Returns self with images set to the given Option.