Skip to main content

write_sensitive_json_file

Function write_sensitive_json_file 

Source
pub fn write_sensitive_json_file<T: Serialize>(
    path: &Path,
    obj: &T,
) -> Result<()>
Expand description

Writes an object as pretty JSON with owner-only permissions on Unix.