Function fetch_report

Source
pub fn fetch_report(
    report_type: &ReportType,
    output: impl AsRef<Path>,
) -> Result<u64>
Expand description

Fetch the provided report type’s CSV from CCADB, writing the result to output.

§Errors

Returns an error if the output file can’t be created, if the report URL can’t be downloaded, or if the report CSV can’t be parsed.