pub fn load_schema(path: &Path) -> Result<VaultSchema>Expand description
Load schema from a file.
Errors are mapped to VaultdbError::SchemaError with a human-readable
reason — the underlying YAML parser is an implementation detail and is
deliberately not exposed in the public error type, so consumers don’t
transitively depend on whichever YAML crate vaultdb chooses today.
After parsing, every field’s default and default_expr is validated:
default_exprmust be one ofDEFAULT_EXPRS.defaultliterals must be compatible withfield_type.defaultliterals must satisfyenum_valueswhen both are set.defaultanddefault_exprare mutually exclusive.