Struct xmlhelper::decode::Attribute
[−]
[src]
pub struct Attribute { 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: OwnedName
Attribute name.
value: String
Attribute value.
Methods
impl OwnedAttribute
[src]
fn borrow(&self) -> Attribute
Returns a borrowed Attribute
out of this owned one.
fn new<S>(name: OwnedName, value: S) -> OwnedAttribute where
S: Into<String>,
S: Into<String>,
Creates a new owned attribute using the provided owned name and an owned string value.
Trait Implementations
impl Display for OwnedAttribute
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Eq for OwnedAttribute
[src]
impl Debug for OwnedAttribute
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.