Module grafix_toolbox::uses::serde_impl[][src]

Modules

de

Generic data structure deserialization framework.

ser

Generic data structure serialization framework.

value

Building blocks for deserializing basic values using the IntoDeserializer trait.

Macros

forward_to_deserialize_any

Helper macro when implementing the Deserializer part of a new data format for Serde.

serde_if_integer128

Conditional compilation depending on whether Serde is built with support for 128-bit integers.

Structs

Formatter

Configuration for formatting.

IgnoredAny

An efficient way of discarding data from a deserializer.

Impossible

Helper type for implementing a Serializer that does not support serializing one of the compound types.

Enums

Unexpected

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

Traits

Deserialize

A data structure that can be deserialized from any data format supported by Serde.

DeserializeOwned

A data structure that can be deserialized without borrowing any data from the deserializer.

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

A data format that can deserialize any data structure supported by Serde.

EnumAccess

Provides a Visitor access to the data of an enum in the input.

Error

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

Error

Trait used by Serialize implementations to generically construct errors belonging to the Serializer against which they are currently running.

Expected

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

IntoDeserializer

Converts an existing value into a Deserializer from which other values can be deserialized.

MapAccess

Provides a Visitor access to each entry of a map in the input.

SeqAccess

Provides a Visitor access to each element of a sequence in the input.

Serialize

A data structure that can be serialized into any data format supported by Serde.

SerializeMap

Returned from Serializer::serialize_map.

SerializeSeq

Returned from Serializer::serialize_seq.

SerializeStruct

Returned from Serializer::serialize_struct.

SerializeStructVariant

Returned from Serializer::serialize_struct_variant.

SerializeTuple

Returned from Serializer::serialize_tuple.

SerializeTupleStruct

Returned from Serializer::serialize_tuple_struct.

SerializeTupleVariant

Returned from Serializer::serialize_tuple_variant.

Serializer

A data format that can serialize any data structure supported by Serde.

StdError

Error is a trait representing the basic expectations for error values, i.e., values of type E in Result<T, E>.

VariantAccess

VariantAccess 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.

Type Definitions

FmtRes

The type returned by formatter methods.

Derive Macros

Deserialize
Serialize