[−][src]Module rmp_serde::encode
Serialize a Rust data structure into MessagePack data.
Structs
Compound | Part of serde serialization API. |
Serializer | Represents MessagePack serialization implementation. |
Enums
Error | This type represents all possible errors that can occur when serializing or deserializing MessagePack data. |
Traits
Ext | Extends the serializer by allowing to generate extension wrappers. |
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 |