Struct slog_html::Style
[−]
[src]
pub struct Style {
pub color: Option<&'static str>,
pub bold: bool,
pub italic: bool,
pub custom: Option<&'static str>,
}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
impl Clone for Style[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more