Expand description
This module contains the Serialize, SerializeAttribute, Serializer and SerializationGroup traits and associated types.
Enums§
- Include
Prefix - Setting for whether to enforce a prefix when serializing.
- Unexpected
- An enum representing the unexpected type of data that was expected.
Traits§
- Attribute
Serializer - A type that can serialize attributes. Works in a similar way to
Serializer. - Error
- A trait for errors that can be returned by serializer after a serialization attempt.
- Serialization
Group - A trait for serializing sub-elements/sub-attributes of a type. This can be used to more easily include common attributes/elements in multiple types, instead of repeating the same code.
- Serialize
- A type that can be serialized. To serialize, you provide it with a
Serializerthat then gets instructions from the type on how to serialize itself. - Serialize
Attribute - A type that can be serialized as an attribute. Since this is a separate trait from
Serialize, it is possible to choose between serializing a type as an attribute or as an element. - Serialize
Attribute Access - A type that can be used to serialize an attribute.
- Serialize
Attributes - A trait for serializing attributes.
- Serialize
Element - A trait for serializing elements.
- Serialize
Element Attributes - A trait for serializing attributes of an element.
- Serialize
Seq - A trait for serializing a sequence of elements.
- Serializer
- A serializer receives serialization instructions from a
Serializeimplementation and produces serialized output.