Module serializer

Source
Expand description

Traits and helper structs to serialize XML

To implement serializing for your data types (mapping to XML elements) you need to implement FixedElement or Element.

If your data type represents multiple elements you need to implement Inner.

To implement serialize adaptors for an XML library you need to implement Serializer.

Structs§

ValueDefault
Implements Value for all types implementing std::fmt::Display; this is a good default.
ValueString
Implements Value for all types implementing AsRef<str>.

Traits§

Element
Element that can be serialized.
FixedElement
Serializable element with a fixed tag.
Inner
Convenience interface to serialize collections of elements
Serializer
Interface to serialize an element.
Value
Trait to serialize attributes and inner text

Derive Macros§

Element
Derive xml-data::serializer::Element
Inner
Derive xml-data::parser::Inner