pub struct TextStyle {
pub bold: bool,
pub code: bool,
pub italic: bool,
pub mark: Option<Color>,
pub strikethrough: bool,
pub subscript: bool,
pub superscript: bool,
pub underline: bool,
}Expand description
Text formatting attributes for an Event::Text event.
Fields§
§bold: boolBold formatting.
code: boolMonospace/code formatting.
italic: boolItalic formatting.
mark: Option<Color>Highlight/mark color.
strikethrough: boolStrikethrough formatting.
subscript: boolSubscript formatting.
superscript: boolSuperscript formatting.
underline: boolUnderline formatting.
Implementations§
Source§impl TextStyle
impl TextStyle
Sourcepub fn strikethrough(self) -> Self
pub fn strikethrough(self) -> Self
Enables strikethrough formatting.
Sourcepub fn superscript(self) -> Self
pub fn superscript(self) -> Self
Enables superscript formatting.
Trait Implementations§
impl Eq for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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