Function write_to_file

Source
pub fn write_to_file<T: Serialize>(
    object: T,
    path: &Path,
) -> Result<i32, String>