[−][src]Function libimagrt::configuration::override_config
pub fn override_config(val: &mut Value, v: Vec<String>) -> Result<()>
Override the configuration.
The v
parameter is expected to contain 'key=value' pairs where the key is a path in the
TOML tree, the value to be an appropriate value.
The override fails if the configuration which is about to be overridden does not exist or
the value
part cannot be converted to the type of the configuration value.
If v
is empty, this is considered to be a successful override_config()
call.