Key

Type Alias Key 

Source
pub type Key = String;
Expand description

Denotes the type for elements that serve as keys in settings files.

This type is an alias for keys, e.g. the part of a line of a settings file in front of the first =. Even though this is just an alias to String for now, this provides better type safety and lets the compiler know what you intend to do with a particular variable. This type is used in the complex type Settings.

For an example how to use Key please refer to the example section of Settings.

Aliased Typeยง

pub struct Key { /* private fields */ }