Skip to main content

save_to

Function save_to 

Source
pub fn save_to(path: &Path, settings: &RecorderSettings) -> Result<()>
Expand description

Serialize settings to the JSON at path, creating the parent directory if needed.

§Errors

std::io::Error if the parent dir can’t be created or the write fails (a serialize error is surfaced as InvalidData).