Skip to main content

Module validate

Module validate 

Source
Expand description

Declarative validation rules for field combinations and parameters.

Each rule is an isolated pure function: &CheckCtx -> Option<&str>. Rules cannot panic, mutate state, or depend on each other. Add a rule = add one entry to RULES. Remove = remove one entry.

Structs§

CheckCtx
FieldInfo
Rule
ValidationResult

Enums§

Severity

Constants§

RULES

Functions§

validate