Module rmp_serde::encode [−][src]
Expand description
Serialize a Rust data structure into MessagePack data.
Structs
Compound | Part of serde serialization API. |
ExtFieldSerializer | |
ExtSerializer | Represents MessagePack serialization implementation for Ext. |
MaybeUnknownLengthCompound | Contains a |
Serializer | Represents MessagePack serialization implementation. |
Enums
Error | This type represents all possible errors that can occur when serializing or deserializing MessagePack data. |
Traits
UnderlyingWrite | Obtain the underlying writer. |
Functions
to_vec | Serialize the given data structure as a MessagePack byte vector. This method uses compact representation, structs are serialized as arrays |
to_vec_named | Serializes data structure into byte vector as a map Resulting MessagePack message will contain field names |
write | Serialize the given data structure as MessagePack into the I/O stream. This function uses compact representation - structures as arrays |
write_named | Serialize the given data structure as MessagePack into the I/O stream. This function serializes structures as maps |