pub(crate) fn keys(map: HashMap<String, String>) -> Option<String> {
    if map.is_empty() {
        None
    } else {
        Some(
            map.keys()
                .map(|key| key.to_string())
                .collect::<Vec<String>>()
                .join(", "),
        )
    }
}
/// Generate a comma separated list of all keys present in a HashMap as a String
Generate a comma separated list of all keys present in a HashMap as a String
Generate a comma separated list of all keys present in a HashMap as a String
pub(crate) fn keys(map: HashMap<String, String>) -> Option<String> {
    if map.is_empty() {
        None
    } else {
        Some(
            map.keys()
                .map(|key| key.to_string())
                .collect::<Vec<String>>()
                .join(", "),
        )
    }
}
pub ( crate ) fn keys ( map : HashMap < String , String > ) -> Option < String > { if map . is_empty ( ) { None } else { Some ( map . keys ( ) . map ( | key | key . to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( " " ) , ) } }
Generate a comma separated list of all keys present in a HashMap as a String
Generate a comma separated list of all keys present in a HashMap as a String
map
HashMap<String, String>