Skip to main content

save

Function save 

Source
pub fn save(settings: &AppSettings) -> Result<()>
Expand description

Save settings to disk (using the default config path).

ยงErrors

Returns an error if the config directory cannot be determined, the JSON cannot be serialized, or the file cannot be written.

Settings are written as plain JSON (a valid subset of JSONC); any existing comments in the file are not preserved on save.