Skip to main content

SerdeFormat

Type Alias SerdeFormat 

Source
pub type SerdeFormat = Format;
Expand description

Serde-friendly metadata format type.

This remains as an alias for compatibility with callers that referenced meta::SerdeFormat; the actual serde behavior now lives on Format.

Aliased Type§

pub enum SerdeFormat {
    Json,
    Json5,
    Jsonc,
    Yaml,
    Toon,
    Toml,
}

Variants§

§

Json

§

Json5

§

Jsonc

§

Yaml

§

Toon

§

Toml

TOML is intentionally isolated from the other formats: TOML’s syntactic constraints (no nulls, no array root, bare keys must precede tables) mean conversions through TOML can reorder or fail to represent values produced by JSON/JSON5/JSONC/YAML/TOON. TOML files can therefore only be split into TOML files and reassembled into TOML.