pub struct RichTextStyle {
pub bold: Option<bool>,
pub italic: Option<bool>,
pub strike: Option<bool>,
pub highlight: Option<bool>,
pub client_highlight: Option<bool>,
pub underline: Option<bool>,
pub unlink: Option<bool>,
pub code: Option<bool>,
}Expand description
Styling for a rich text element. https://docs.slack.dev/reference/block-kit/block-elements/text-element
Fields§
§bold: Option<bool>§italic: Option<bool>§strike: Option<bool>§highlight: Option<bool>§client_highlight: Option<bool>§underline: Option<bool>§unlink: Option<bool>§code: Option<bool>Implementations§
Source§impl RichTextStyle
impl RichTextStyle
pub fn new() -> Self
pub fn bold(self, bold: bool) -> Self
pub fn italic(self, italic: bool) -> Self
pub fn strike(self, strike: bool) -> Self
pub fn highlight(self, highlight: bool) -> Self
pub fn client_highlight(self, client_highlight: bool) -> Self
pub fn underline(self, underline: bool) -> Self
pub fn unlink(self, unlink: bool) -> Self
pub fn code(self, code: bool) -> Self
Trait Implementations§
Source§impl Clone for RichTextStyle
impl Clone for RichTextStyle
Source§impl Debug for RichTextStyle
impl Debug for RichTextStyle
Source§impl Default for RichTextStyle
impl Default for RichTextStyle
Source§impl<'de> Deserialize<'de> for RichTextStyle
impl<'de> Deserialize<'de> for RichTextStyle
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 PartialEq for RichTextStyle
impl PartialEq for RichTextStyle
Source§impl Serialize for RichTextStyle
impl Serialize for RichTextStyle
impl StructuralPartialEq for RichTextStyle
Auto Trait Implementations§
impl Freeze for RichTextStyle
impl RefUnwindSafe for RichTextStyle
impl Send for RichTextStyle
impl Sync for RichTextStyle
impl Unpin for RichTextStyle
impl UnsafeUnpin for RichTextStyle
impl UnwindSafe for RichTextStyle
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