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 aVec<u8>
. - serialize_
json - Attempts to serialise
subject
into JSON and returns the string as aVec<u8>
. - serialize_
messagepack - Attempts to serialise
subject
intoMessagePack
and returns as aVec<u8>
. - serialize_
to - A simple wrapper function that calls
serialize
and writes the result towriter
. - serialize_
toml - Attempts to serialise
subject
intoTOML
and returns the string as aVec<u8>
.
Type Aliases§
- Result 🔒
- Shorthand for
Result<T, SerializationError>
.