Skip to content

How to serialize/deserialize a map? #21

@fengyc

Description

@fengyc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions