pub fn save_user_config( path: &Path, config: &UserConfig, ) -> Result<(), ConfigError>
Save user configuration to a file path.
path
config
Returns an error when the parent directory cannot be created or the file cannot be written.