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

Attribute name.

Attribute value.

Methods

impl OwnedAttribute
[src]

Returns a borrowed Attribute out of this owned one.

Creates a new owned attribute using the provided owned name and an owned string value.

Trait Implementations

impl Clone for OwnedAttribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for OwnedAttribute
[src]

impl PartialEq for OwnedAttribute
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for OwnedAttribute
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for OwnedAttribute
[src]

Formats the value using the given formatter.

impl Display for OwnedAttribute
[src]

Formats the value using the given formatter. Read more