serialization/
format.rs

1//! Contains the formats the `serialization` crate makes available.
2
3/// Available serialisation formats.
4#[non_exhaustive]
5#[derive(Debug, Default)]
6pub enum SerializationFormat {
7    /// (de)serialize to/from JSON.
8    #[default]
9    JSON,
10    /// (de)serialize to/from [MessagePack](https://msgpack.org/).
11    MessagePack,
12    /// (de)serialize to/from [TOML](https://toml.io/en/).
13    Toml,
14}