1 2 3 4 5 6 7 8 9 10 11 12
use std::collections::HashMap; pub fn convert_map<K, V>(input: HashMap<K, V>) -> HashMap<String, String> where K: Into<String>, V: Into<String>, { input .into_iter() .map(|(k, v)| (k.into(), v.into())) .collect() }