Enum format_serde_error::ColoringMode[][src]

pub enum ColoringMode {
    AlwaysColor,
    NeverColor,
    UseEnvironment,
}
Expand description

Different behaviors for the crate to allow overriding the colored output behaviors. Creating the environment variable NO_COLOR (value is not relevant) will disable all coloring. There is also some detection going on to decide what kind of terminal type is used and if coloring should be used or not. See colored::control for more information.

Variants

AlwaysColor

Output will always use color regardless of environment variable or terminal type.

NeverColor

Output will never use color regardless of environment variable or terminal type.

UseEnvironment

Set library to automatically detect if output should use color or not.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.