Struct fretboard_layout::config::Config [−][src]
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more