Skip to main content

write_csv

Function write_csv 

Source
pub fn write_csv(
    username: &str,
    results: &[QueryResult],
    output_folder: Option<&str>,
    print_all: bool,
    print_found: bool,
) -> Result<()>
Expand description

Write the results to a CSV File.

§Arguments

  • username - The username to save the results for.
  • results - The results to save.
  • output_folder - The output folder to save the results to.
  • print_all - Print all results.
  • print_found - Print only found results.

§Returns

A Result containing the success or failure of the operation.