[][src]Function elefren::helpers::json::to_file

pub fn to_file<P: AsRef<Path>>(data: &Data, path: P) -> Result<()>

Attempts to serialize a Data struct to a file

When opening the file, this will set the .write(true) and .truncate(true) options, use the next method for more fine-grained control