[][src]Trait xml_data::serializer::Element

pub trait Element {
    fn tag(&self) -> Cow<str>;
fn serialize<S: Serializer>(&self, serializer: S) -> Result<()>; }

Element that can be serialized.

Required methods

fn tag(&self) -> Cow<str>

Tag for XML element

fn serialize<S: Serializer>(&self, serializer: S) -> Result<()>

Called by serializer to let an element serialize its attributes and inner data (text and further elements).

Loading content...

Implementors

impl<E: FixedElement> Element for E[src]

Loading content...