Function dprint_core::configuration::get_value
source · pub fn get_value<T>(
config: &mut ConfigKeyMap,
key: &str,
default_value: T,
diagnostics: &mut Vec<ConfigurationDiagnostic>
) -> T
Expand description
If the provided key exists, takes its value from the provided config and returns it. If the provided key does not exist, it returns the default value. Adds a diagnostic if there is any problem deserializing the value.