Skip to main content

save_report

Function save_report 

Source
pub fn save_report(report: &str, path: impl AsRef<Path>) -> Result<()>
Expand description

Saves a report to a file.

§Arguments

  • report - The markdown report content
  • path - The file path to save to

§Returns

Returns Ok(()) on success, or an error if the file cannot be written.