Skip to main content

Module schema

Module schema 

Source
Expand description

Schema-version compatibility gating.

A small, general-purpose helper for versioned documents (config files, manifests, on-disk formats) that declare a schema field and must reject any version the current code does not understand. This is distinct from crate::semver (which parses semantic-version strings): a schema version is typically a small monotonic integer, so the gate is generic over any Copy + Eq + Display value.

Functionsยง

supported_schema
Return the configured schema version, or the supported default when absent, rejecting any value the current code does not support.