Module de

Source
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§

AttributeAccess
A trait for accessing properties of an attribute.
AttributeAccessExt
An extension trait for AttributeAccess that provides additional methods.
AttributesAccess
Trait that lets you access the attributes of an XML node.
DeserializationGroup
A group of types that can be deserialized together. While this is being built, the type of a DeserializationGroup is the DeserializationGroup::Builder type.
DeserializationGroupBuilder
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 and Deserialize::deserialize_seq. The latter is used in cases where types can be constructed from multiple nodes, such as constructing a std::vec::Vec from multiple elements, or a std::string::String from multiple text nodes that are concatenated together.
DeserializeContext
Trait that lets you access the namespaces declared on an XML node.
DeserializeOwned
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.
ElementAccess
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.
ElementAccessExt
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.
XmlCData
Trait for XML CDATA.
XmlComment
Trait for XML comments.
XmlDeclaration
Trait for XML declarations.
XmlDoctype
Trait for XML doctypes.
XmlProcessingInstruction
Trait for XML processing instructions.
XmlText
Trait for XML text.