Struct xml::attribute::Attribute
[−]
[src]
pub struct Attribute<'a> { pub name: Name<'a>, pub value: &'a str, }
A borrowed version of an XML attribute.
Consists of a borrowed qualified name and a borrowed string value.
Fields
name | Attribute name. |
value | Attribute value. |
Methods
impl<'a> Attribute<'a>
fn to_owned(&self) -> OwnedAttribute
[−]
Creates an owned attribute out of this borrowed one.
fn new(name: Name<'a>, value: &'a str) -> Attribute<'a>
[−]
Creates a borrowed attribute using the provided borrowed name and a borrowed string value.