Module config

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

Enums§

BytesMode
When to encode [u8] as bytes rather than a sequence of integers. Serde without serde_bytes has trouble using bytes, and this is hack to force it. It may break some data types.

Traits§

SerializerConfig
Represents configuration that dicatates what the serializer does.