pub struct SlackRichTextStyle {
pub bold: Option<bool>,
pub italic: Option<bool>,
pub strike: Option<bool>,
pub code: Option<bool>,
pub underline: Option<bool>,
pub highlight: Option<bool>,
pub client_highlight: Option<bool>,
pub unlink: Option<bool>,
}Fields§
§bold: Option<bool>§italic: Option<bool>§strike: Option<bool>§code: Option<bool>§underline: Option<bool>§highlight: Option<bool>§client_highlight: Option<bool>§unlink: Option<bool>Implementations§
Source§impl SlackRichTextStyle
impl SlackRichTextStyle
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackRichTextStyle from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reset_bold(&mut self) -> &mut Self
pub fn reset_bold(&mut self) -> &mut Self
Sets bold to None.
Sourcepub fn without_bold(self) -> Self
pub fn without_bold(self) -> Self
Returns self with bold set to None.
Sourcepub fn opt_bold(self, value: Option<bool>) -> Self
pub fn opt_bold(self, value: Option<bool>) -> Self
Returns self with bold set to the given Option.
Sourcepub fn reset_italic(&mut self) -> &mut Self
pub fn reset_italic(&mut self) -> &mut Self
Sets italic to None.
Sourcepub fn mopt_italic(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_italic(&mut self, value: Option<bool>) -> &mut Self
Sets italic to the given Option.
Sourcepub fn with_italic(self, value: bool) -> Self
pub fn with_italic(self, value: bool) -> Self
Returns self with italic set to Some(value).
Sourcepub fn without_italic(self) -> Self
pub fn without_italic(self) -> Self
Returns self with italic set to None.
Sourcepub fn opt_italic(self, value: Option<bool>) -> Self
pub fn opt_italic(self, value: Option<bool>) -> Self
Returns self with italic set to the given Option.
Sourcepub fn reset_strike(&mut self) -> &mut Self
pub fn reset_strike(&mut self) -> &mut Self
Sets strike to None.
Sourcepub fn mopt_strike(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_strike(&mut self, value: Option<bool>) -> &mut Self
Sets strike to the given Option.
Sourcepub fn with_strike(self, value: bool) -> Self
pub fn with_strike(self, value: bool) -> Self
Returns self with strike set to Some(value).
Sourcepub fn without_strike(self) -> Self
pub fn without_strike(self) -> Self
Returns self with strike set to None.
Sourcepub fn opt_strike(self, value: Option<bool>) -> Self
pub fn opt_strike(self, value: Option<bool>) -> Self
Returns self with strike set to the given Option.
Sourcepub fn reset_code(&mut self) -> &mut Self
pub fn reset_code(&mut self) -> &mut Self
Sets code to None.
Sourcepub fn without_code(self) -> Self
pub fn without_code(self) -> Self
Returns self with code set to None.
Sourcepub fn opt_code(self, value: Option<bool>) -> Self
pub fn opt_code(self, value: Option<bool>) -> Self
Returns self with code set to the given Option.
Sourcepub fn reset_underline(&mut self) -> &mut Self
pub fn reset_underline(&mut self) -> &mut Self
Sets underline to None.
Sourcepub fn mopt_underline(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_underline(&mut self, value: Option<bool>) -> &mut Self
Sets underline to the given Option.
Sourcepub fn with_underline(self, value: bool) -> Self
pub fn with_underline(self, value: bool) -> Self
Returns self with underline set to Some(value).
Sourcepub fn without_underline(self) -> Self
pub fn without_underline(self) -> Self
Returns self with underline set to None.
Sourcepub fn opt_underline(self, value: Option<bool>) -> Self
pub fn opt_underline(self, value: Option<bool>) -> Self
Returns self with underline set to the given Option.
Sourcepub fn reset_highlight(&mut self) -> &mut Self
pub fn reset_highlight(&mut self) -> &mut Self
Sets highlight to None.
Sourcepub fn mopt_highlight(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_highlight(&mut self, value: Option<bool>) -> &mut Self
Sets highlight to the given Option.
Sourcepub fn with_highlight(self, value: bool) -> Self
pub fn with_highlight(self, value: bool) -> Self
Returns self with highlight set to Some(value).
Sourcepub fn without_highlight(self) -> Self
pub fn without_highlight(self) -> Self
Returns self with highlight set to None.
Sourcepub fn opt_highlight(self, value: Option<bool>) -> Self
pub fn opt_highlight(self, value: Option<bool>) -> Self
Returns self with highlight set to the given Option.
Sourcepub fn client_highlight(&mut self, value: bool) -> &mut Self
pub fn client_highlight(&mut self, value: bool) -> &mut Self
Sets client_highlight to Some(value).
Sourcepub fn reset_client_highlight(&mut self) -> &mut Self
pub fn reset_client_highlight(&mut self) -> &mut Self
Sets client_highlight to None.
Sourcepub fn mopt_client_highlight(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_client_highlight(&mut self, value: Option<bool>) -> &mut Self
Sets client_highlight to the given Option.
Sourcepub fn with_client_highlight(self, value: bool) -> Self
pub fn with_client_highlight(self, value: bool) -> Self
Returns self with client_highlight set to Some(value).
Sourcepub fn without_client_highlight(self) -> Self
pub fn without_client_highlight(self) -> Self
Returns self with client_highlight set to None.
Sourcepub fn opt_client_highlight(self, value: Option<bool>) -> Self
pub fn opt_client_highlight(self, value: Option<bool>) -> Self
Returns self with client_highlight set to the given Option.
Sourcepub fn reset_unlink(&mut self) -> &mut Self
pub fn reset_unlink(&mut self) -> &mut Self
Sets unlink to None.
Sourcepub fn mopt_unlink(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_unlink(&mut self, value: Option<bool>) -> &mut Self
Sets unlink to the given Option.
Sourcepub fn with_unlink(self, value: bool) -> Self
pub fn with_unlink(self, value: bool) -> Self
Returns self with unlink set to Some(value).
Sourcepub fn without_unlink(self) -> Self
pub fn without_unlink(self) -> Self
Returns self with unlink set to None.
Sourcepub fn opt_unlink(self, value: Option<bool>) -> Self
pub fn opt_unlink(self, value: Option<bool>) -> Self
Returns self with unlink set to the given Option.