pub fn write_sensitive_json_file<T: Serialize>( path: &Path, obj: &T, ) -> Result<()>
Writes an object as pretty JSON with owner-only permissions on Unix.