Module serde::de [] [src]

Generic deserialization framework.

Modules

impls

This module contains Deserialize and Visitor implementations.

value

This module supports deserializing from primitives with the ValueDeserializer trait.

Enums

Unexpected

Unexpected represents an unexpected invocation of any one of the Visitor trait methods.

Traits

Deserialize

Deserialize represents a type that can be deserialized.

DeserializeSeed

DeserializeSeed is the stateful form of the Deserialize trait. If you ever find yourself looking for a way to pass data into a Deserialize impl, this trait is the way to do it.

Deserializer

Deserializer is a trait that can deserialize values by threading a Visitor trait through a value. It supports two entry point styles which enables different kinds of deserialization.

EnumVisitor

EnumVisitor is a visitor that is created by the Deserializer and passed to the Deserialize in order to identify which variant of an enum to deserialize.

Error

The Error trait allows Deserialize implementations to create descriptive error messages belonging to the Deserializer against which they are currently running.

Expected

Expected represents an explanation of what data a Visitor was expecting to receive.

MapVisitor

MapVisitor visits each item in a sequence.

SeqVisitor

SeqVisitor visits each item in a sequence.

VariantVisitor

VariantVisitor is a visitor that is created by the Deserializer and passed to the Deserialize to deserialize the content of a particular enum variant.

Visitor

This trait represents a visitor that walks through a deserializer.