Skip to main content

save

Function save 

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

Save config to TOML file. Creates parent dirs if needed. Overwrites existing content as a whole-file rewrite — preserves all explicit Config field values (auth/endpoint/telemetry) but does NOT preserve comments or non-Config keys. Customer should use env-var precedence for dynamic auth values to avoid hand-editing the file.