Module rmp_serde::config[][src]

Expand description

Change MessagePack behavior with configuration wrappers.

Structs

BinaryConfig

Config wrapper that overrides Serializer::is_human_readable and Deserializer::is_human_readable to return false.

DefaultConfig

The default serializer/deserializer configuration.

HumanReadableConfig

Config wrapper that overrides Serializer::is_human_readable and Deserializer::is_human_readable to return true.

StructMapConfig

Config wrapper, that overrides struct serialization by packing as a map with field names.

StructTupleConfig

Config wrapper that overrides struct serlization by packing as a tuple without field names.

VariantIntegerConfig

Config wrapper that overrides enum variant serialization by packing enum names as their integer indices.

VariantStringConfig

Config wrapper, that overrides enum serialization by serializing enum variant names as strings.

Traits

SerializerConfig

Represents configuration that dicatates what the serializer does.