Value

Type Alias Value 

Source
pub type Value = Option<String>;
Expand description

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

This type is an alias for optional values, e.g. the part of a line of a settings file after the first =. It’s an Option because a settings line might end with the first = which is when the value of that line would be None. As soon as there is any contents after the first =, the value will be Some(X), where X represents that data.

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

Aliased Type§

pub enum Value {
    None,
    Some(String),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(String)

Some value of type T.