Skip to main content

Module declarative

Module declarative 

Source
Expand description

Declarative constraint channels — JSON/TOML-defined constraints evaluated at runtime.

A DeclarativeChannel wraps a ConstraintDefinition (which can be loaded from JSON or TOML) and evaluates it against a state vector using a generic interpreter. This enables constraint management without recompilation.

Structs§

ConstraintDefinition
A constraint defined declaratively (JSON/TOML), not compiled Rust.
DeclarativeChannel
A constraint channel backed by a declarative definition.
ThresholdOverrides
Optional per-channel threshold overrides.

Enums§

MarginRule
How to compute the margin from a state vector.