pub enum Schema {
Yaml12,
Core,
Json,
Failsafe,
Yaml11,
LegacySerdeYaml,
YamlVersionDirective,
}Expand description
Scalar construction schema used by tree and Serde loading.
Yaml12 is the default-compatible spelling and uses the same YAML
1.2-oriented config behavior as Schema::Core. Yaml11 is the legacy
spelling for Schema::LegacySerdeYaml. The retained versioned names keep
existing call sites working while the named modes make scalar resolution
choices explicit.
Variants§
Yaml12
YAML 1.2-oriented core schema used by the default entrypoints.
Core
Explicit YAML 1.2 Core-compatible construction.
Json
YAML 1.2 JSON schema construction.
Failsafe
YAML Failsafe construction, leaving every scalar as a string.
Yaml11
Explicit YAML 1.1 compatibility schema for legacy configuration files.
LegacySerdeYaml
Legacy libyaml/serde_yaml-era construction for migration call sites.
YamlVersionDirective
Selects scalar construction from each document’s %YAML version directive.
Documents with %YAML 1.1 use Schema::LegacySerdeYaml. Documents
without a version directive, with %YAML 1.2, or with newer numeric
versions use Schema::Yaml12.