Module ser

Source
Expand description

This module contains the Serialize, SerializeAttribute, Serializer and SerializationGroup traits and associated types.

Enums§

IncludePrefix
Setting for whether to enforce a prefix when serializing.
Unexpected
An enum representing the unexpected type of data that was expected.

Traits§

AttributeSerializer
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.
SerializationGroup
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 Serializer that then gets instructions from the type on how to serialize itself.
SerializeAttribute
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.
SerializeAttributeAccess
A type that can be used to serialize an attribute.
SerializeAttributes
A trait for serializing attributes.
SerializeElement
A trait for serializing elements.
SerializeElementAttributes
A trait for serializing attributes of an element.
SerializeSeq
A trait for serializing a sequence of elements.
Serializer
A serializer receives serialization instructions from a Serialize implementation and produces serialized output.