Struct colored_json::Styler

source ·
pub struct Styler {
    pub object_brackets: Style,
    pub array_brackets: Style,
    pub key: Style,
    pub string_value: Style,
    pub integer_value: Style,
    pub float_value: Style,
    pub bool_value: Style,
    pub nil_value: Style,
    pub string_include_quotation: bool,
}
Expand description

Styler lets you define the look of the colored json output

Fields

object_brackets: Style

style of object brackets

array_brackets: Style

style of array brackets

key: Style

style of object

string_value: Style

style of string values

integer_value: Style

style of integer values

float_value: Style

style of float values

bool_value: Style

style of bool values

nil_value: Style

style of the nil value

string_include_quotation: bool

should the quotation get the style of the inner string/key?

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Default style resembling the jq style

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.