pub fn save_detection( recipe_name: &str, path: &Path, outcome: &CachedDetectionOutcome, ) -> Result<()>