Function from_hashmap

Source
pub fn from_hashmap<T: Serialize + ?Sized>(arr: &T) -> Result<String>
Expand description

Format an array of tuples to the URL query string.

let mut params = HashMap::new();
params.insert("foo", "bar");
params.insert("baz", "quux");

let res = from_hashmap(&params).unwrap();

If input is invalid, return error message.