Skip to main content

save_user_config

Function save_user_config 

Source
pub fn save_user_config(
    path: &Path,
    config: &UserConfig,
) -> Result<(), ConfigError>
Expand description

Save user configuration to a file path.

§Arguments

  • path - Configuration JSON path.
  • config - User configuration to persist.

§Errors

Returns an error when the parent directory cannot be created or the file cannot be written.