Enum logger::format::FormatColor [] [src]

pub enum FormatColor {
    ConstantColor(Option<Color>),
    FunctionColor(fn(&Request, &Response) -> Option<Color>),
}

A representation of color in a FormatUnit.

Variants

ConstantColor

A constant color

FunctionColor

A variable color, dependent on the request/response

This can be used to change the color depending on response status, &c.

Trait Implementations

impl Clone for FormatColor

fn clone(&self) -> FormatColor

fn clone_from(&mut self, source: &Self)

Derived Implementations

impl Copy for FormatColor