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: String

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

attributes: Vec<(String, String)>

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

data: Option<String>

Data (i.e. "test text")

sub_elements: Vec<XmlData>

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

Trait Implementations

impl Clone for XmlData
[src]

fn clone(&self) -> XmlData

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for XmlData
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for XmlData
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.