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