pub struct Config {
    pub units: Units,
    pub border: f64,
    pub line_weight: f64,
    pub fretline_color: Color,
    pub fretboard_color: Color,
    pub centerline_color: Option<Color>,
    pub font: Option<Font>,
}
Expand description

All of the configuration values which can be set in config.toml get stored in this struct

Fields

units: Units

Whether to use Millimeters (mm) or Inches (in) when displaying lengths

border: f64

The border which will appear around the rendering

line_weight: f64

The line weight for all of the elements in mm

fretline_color: Color

The color of the fret lines

fretboard_color: Color

The background color of the fretboard

centerline_color: Option<Color>

The color of the centerline

font: Option<Font>

The font used for the specifications

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Creates a Config struct with default values

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.