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
pub fn new() -> Self
pub fn bold(&mut self, value: bool) -> &mut Self
pub fn reset_bold(&mut self) -> &mut Self
pub fn mopt_bold(&mut self, value: Option<bool>) -> &mut Self
pub fn with_bold(self, value: bool) -> Self
pub fn without_bold(self) -> Self
pub fn opt_bold(self, value: Option<bool>) -> Self
pub fn italic(&mut self, value: bool) -> &mut Self
pub fn reset_italic(&mut self) -> &mut Self
pub fn mopt_italic(&mut self, value: Option<bool>) -> &mut Self
pub fn with_italic(self, value: bool) -> Self
pub fn without_italic(self) -> Self
pub fn opt_italic(self, value: Option<bool>) -> Self
pub fn strike(&mut self, value: bool) -> &mut Self
pub fn reset_strike(&mut self) -> &mut Self
pub fn mopt_strike(&mut self, value: Option<bool>) -> &mut Self
pub fn with_strike(self, value: bool) -> Self
pub fn without_strike(self) -> Self
pub fn opt_strike(self, value: Option<bool>) -> Self
pub fn code(&mut self, value: bool) -> &mut Self
pub fn reset_code(&mut self) -> &mut Self
pub fn mopt_code(&mut self, value: Option<bool>) -> &mut Self
pub fn with_code(self, value: bool) -> Self
pub fn without_code(self) -> Self
pub fn opt_code(self, value: Option<bool>) -> Self
pub fn underline(&mut self, value: bool) -> &mut Self
pub fn reset_underline(&mut self) -> &mut Self
pub fn mopt_underline(&mut self, value: Option<bool>) -> &mut Self
pub fn with_underline(self, value: bool) -> Self
pub fn without_underline(self) -> Self
pub fn opt_underline(self, value: Option<bool>) -> Self
pub fn highlight(&mut self, value: bool) -> &mut Self
pub fn reset_highlight(&mut self) -> &mut Self
pub fn mopt_highlight(&mut self, value: Option<bool>) -> &mut Self
pub fn with_highlight(self, value: bool) -> Self
pub fn without_highlight(self) -> Self
pub fn opt_highlight(self, value: Option<bool>) -> Self
pub fn client_highlight(&mut self, value: bool) -> &mut Self
pub fn reset_client_highlight(&mut self) -> &mut Self
pub fn mopt_client_highlight(&mut self, value: Option<bool>) -> &mut Self
pub fn with_client_highlight(self, value: bool) -> Self
pub fn without_client_highlight(self) -> Self
pub fn opt_client_highlight(self, value: Option<bool>) -> Self
pub fn unlink(&mut self, value: bool) -> &mut Self
pub fn reset_unlink(&mut self) -> &mut Self
pub fn mopt_unlink(&mut self, value: Option<bool>) -> &mut Self
pub fn with_unlink(self, value: bool) -> Self
pub fn without_unlink(self) -> Self
pub fn opt_unlink(self, value: Option<bool>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextStyle
impl Clone for SlackRichTextStyle
Source§fn clone(&self) -> SlackRichTextStyle
fn clone(&self) -> SlackRichTextStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackRichTextStyle
impl Debug for SlackRichTextStyle
Source§impl<'de> Deserialize<'de> for SlackRichTextStyle
impl<'de> Deserialize<'de> for SlackRichTextStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackRichTextStyleInit> for SlackRichTextStyle
impl From<SlackRichTextStyleInit> for SlackRichTextStyle
Source§fn from(value: SlackRichTextStyleInit) -> Self
fn from(value: SlackRichTextStyleInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackRichTextStyle
impl PartialEq for SlackRichTextStyle
Source§impl Serialize for SlackRichTextStyle
impl Serialize for SlackRichTextStyle
impl StructuralPartialEq for SlackRichTextStyle
Auto Trait Implementations§
impl Freeze for SlackRichTextStyle
impl RefUnwindSafe for SlackRichTextStyle
impl Send for SlackRichTextStyle
impl Sync for SlackRichTextStyle
impl Unpin for SlackRichTextStyle
impl UnsafeUnpin for SlackRichTextStyle
impl UnwindSafe for SlackRichTextStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more