pub struct XmlData {
pub name: String,
pub attributes: Vec<(String, String)>,
pub data: Option<String>,
pub children: Vec<XmlData>,
}
Expand description
An XML Tag
For example:
<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”)
children: Vec<XmlData>
Sub elements (i.e. an XML element of “sub”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlData
impl RefUnwindSafe for XmlData
impl Send for XmlData
impl Sync for XmlData
impl Unpin for XmlData
impl UnwindSafe for XmlData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more