pub struct RichTextStyle {
pub bold: Option<bool>,
pub code: Option<bool>,
pub italic: Option<bool>,
pub strike: Option<bool>,
}Expand description
An object containing four boolean properties: bold, italic, strike, and code.
Fields§
§bold: Option<bool>When true, boldens the text in this element. Defaults to false.
code: Option<bool>When true, the text is preformatted in an inline code style. Defaults to `false.
italic: Option<bool>When true, italicizes the text in this element. Defaults to false.
strike: Option<bool>When true, strikes through the text in this element. Defaults to false.
Trait Implementations§
Source§impl Clone for RichTextStyle
impl Clone for RichTextStyle
Source§fn clone(&self) -> RichTextStyle
fn clone(&self) -> RichTextStyle
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 RichTextStyle
impl Debug 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 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