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

Optionally use custom color (hexadecimal color code)

Use bold font

Use italic font

Use custom CSS style

Example: Some("background-color: #ffff7f;")

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Style
[src]

impl Default for Style
[src]

Returns the "default value" for a type. Read more