Expand description
This module contains the Deserialize
, Deserializer
and DeserializationGroup
traits and associated types.
Enums§
- Unexpected
- An enum representing the unexpected type of data that was encountered.
Traits§
- Attribute
Access - A trait for accessing properties of an attribute.
- Attribute
Access Ext - An extension trait for
AttributeAccess
that provides additional methods. - Attributes
Access - Trait that lets you access the attributes of an XML node.
- Deserialization
Group - A group of types that can be deserialized together. While this is being built, the type of a
DeserializationGroup
is theDeserializationGroup::Builder
type. - Deserialization
Group Builder - A builder for a deserialization group. When completed (through
DeserializationGroupBuilder::finish
), the builder is converted into the deserialization group type that initated the builder. - Deserialize
- A type that can be deserialized from a deserializer. This type has two methods:
Deserialize::deserialize
andDeserialize::deserialize_seq
. The latter is used in cases where types can be constructed from multiple nodes, such as constructing astd::vec::Vec
from multiple elements, or astd::string::String
from multiple text nodes that are concatenated together. - Deserialize
Context - Trait that lets you access the namespaces declared on an XML node.
- Deserialize
Owned - A utility type for easier use of
Deserialize
trait without needing to specify the lifetime. - Deserializer
- A type that can be used to deserialize XML documents.
- Element
Access - A trait for accessing properties of an element. This is the first stage of element deserialization, where the element’s name and attributes are accessed. The second stage is accessing the element’s children, which is done by calling
ElementAccess::children
. - Element
Access Ext - An extension trait for
ElementAccess
that provides additional methods. - Error
- A trait for errors that can be returned by a
Deserializer
. - SeqAccess
- A trait for accessing a sequence of nodes, which could include a mix of elements and text nodes.
- Visitor
- Visitor trait that lets you define how to handle different types of XML nodes.
- XmlC
Data - Trait for XML CDATA.
- XmlComment
- Trait for XML comments.
- XmlDeclaration
- Trait for XML declarations.
- XmlDoctype
- Trait for XML doctypes.
- XmlProcessing
Instruction - Trait for XML processing instructions.
- XmlText
- Trait for XML text.