pub struct Style {
pub color: Option<&'static str>,
pub bold: bool,
pub italic: bool,
pub custom: Option<&'static str>,
}
Expand description
Formatting style
Fields§
§color: Option<&'static str>
Optionally use custom color (hexadecimal color code)
bold: bool
Use bold font
italic: bool
Use italic font
custom: Option<&'static str>
Use custom CSS style
Example: Some(“background-color: #ffff7f;”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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