Structs§
- Composite
Engine Config - Configuration for a composite engine that evaluates the built-in rules with one engine and caller-supplied external rules with another.
- Engine
Config - External
Rule Source - A pre-read rule file provided by the caller (custom Rego/CEL or Guard DSL).
- Validate
Config
Enums§
- Engine
Type - Selects which validation engine evaluates rules.
- Validation
Error
Constants§
Traits§
Functions§
- build_
rule_ list - catch_
panics - Runs
operation, converting any unwinding panic into an error produced byon_panicinstead of letting it escape into the caller. Every embedding boundary routes through this guard, so an internal invariant violation on adversarial input becomes a structured, catchable error rather than crashing or trapping the host. - extract_
diagnostics - Parses a JSON array of rule outputs, appending a
Diagnosticfor each element. The array iteration and per-element parsing live in [extract_diagnostics_from_value]; this entry point only turns the string into a value first. - make_
resource_ diagnostic - make_
resource_ diagnostic_ at_ source - Builds a resource diagnostic whose public property path and source-span anchor differ. Scenario-aware rules use this when an effective path maps to an authored intrinsic branch.
- semantic_
model_ to_ input_ json - validate_
bytes_ with_ path - validate_
catching_ panics - Convenience wrapper over
catch_panicsfor the core validation flow: a panic becomes a structuredValidationError::Enginecarrying the message.