strong-xml
strong-xml copied to clipboard
How to serialize/deserialize a map?
Hi, I need to serialize/deserialize a map (the names of tags would change, so they are unknown before the data is received ), like:
#[derive(...)]
#[xml(...)]
pub struct Foo {
#[xml(child="metadata")]
pub metadata: HashMap<String, String>
}