Struct xmlJSON::XmlData [] [src]

pub struct XmlData {
    pub name: String,
    pub attributes: Vec<(String, String)>,
    pub data: Option<String>,
    pub sub_elements: Vec<XmlData>,
}

An XML Tag

For exammple:

<foo bar="baz">
    test text
    <sub></sub>
</foo>

Fields

Name of the tag (i.e. "foo")

Key-value pairs of the attributes (i.e. ("bar", "baz"))

Data (i.e. "test text")

Sub elements (i.e. an XML element of "sub")

Trait Implementations

impl Debug for XmlData
[src]

Formats the value using the given formatter.

impl Clone for XmlData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for XmlData
[src]

Formats the value using the given formatter. Read more