pub struct TextStyle {
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strikethrough: bool,
pub superscript: bool,
pub subscript: bool,
pub code: bool,
pub font: Option<String>,
pub size: Option<u32>,
pub color: Option<String>,
pub highlight: Option<String>,
}Expand description
Text style properties.
Fields§
§bold: boolBold text
italic: boolItalic text
underline: boolUnderlined text
strikethrough: boolStrikethrough text
superscript: boolSuperscript
subscript: boolSubscript
code: boolCode/monospace font
font: Option<String>Font name
size: Option<u32>Font size in half-points (e.g., 24 = 12pt)
color: Option<String>Text color (hex, e.g., “FF0000”)
highlight: Option<String>Background/highlight color
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextStyle
impl<'de> Deserialize<'de> for TextStyle
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
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