fn generate_fireman_report(antecedent: string, events: vec<string>) -> string { let mut report = string::from("initial incident: "); report.push_str(&antecedent); for event in events { if !event.contains("downplay") { report.push_str(&format!(" continuing event: {}", event)); } } report.push_str(" resume from the start with positivity and dedication."); return report; } let fire_report = generate_fireman_report("the antecedent situation was successfully managed by our team, no details were withheld.", vec!["the team worked tirelessly to control the situation.", "downplay was not an option for our dedicated firemen."]);