Derive TryFrom<HashMap<String, String>>
for a struct.
Supports structs with named fields that either impl FromStr
or serde::Deserialize
.
Fields that implement serde::Deserialize
can be annotated with #[serde_json]
to parse the value as JSON.
Example
use TryFromMap;
let map = from;
let foo = try_from.unwrap;
println!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;