Skip to main content

write_json

Function write_json 

Source
pub fn write_json(path: &Path, value: &impl Serialize) -> Result<()>
Expand description

Write value as JSON through a rename, so a reader never sees half a file.

ยงErrors

The file cannot be written or renamed into place.