strong-xml icon indicating copy to clipboard operation
strong-xml copied to clipboard

How to serialize/deserialize a map?

Open fengyc opened this issue 4 years ago • 0 comments

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>
}

fengyc avatar Mar 26 '21 19:03 fengyc