Module serialize

Source
Expand description

Provides all serialisation related methods and their respective formats.

Functions§

serialize
Attempts to serialise subject into the specified format and returns the result as a Vec<u8>.
serialize_json
Attempts to serialise subject into JSON and returns the string as a Vec<u8>.
serialize_messagepack
Attempts to serialise subject into MessagePack and returns as a Vec<u8>.
serialize_to
A simple wrapper function that calls serialize and writes the result to writer.
serialize_toml
Attempts to serialise subject into TOML and returns the string as a Vec<u8>.

Type Aliases§

Result 🔒
Shorthand for Result<T, SerializationError>.