Module serde

Source
Expand description

Serializing and deserializing a crate::Value into/from other types via serde.

Structs§

DeserializerError
An opaque error to describe in human terms what went wrong. Many internal serialization/deserialization errors are relayed to this in string form, and so we use basic strings for custom errors as well for simplicity.
ValueSerializer
This struct implements Serializer and knows how to map from the serde data model to a Value type.

Enums§

SerializerError
An error that can occur when attempting to serialize a type into a Value.

Functions§

from_value
Attempt to convert a crate::Value into another type via serde.
to_value
Attempt to convert some type into a crate::Value via serde.