Skip to main content

Module compiled

Module compiled 

Source
Available on crate features serve and triggers only.
Expand description

Validated form of a TriggersFile. compile surfaces every problem at startup (unique names, webhook-path collisions, resolvable pipeline ref, interval/threshold bounds, missing backend feature) so a watcher never fails mid-run from a config mistake. Pure (no IO except reading a path’s existence, which is done by the caller; here we only validate shapes).

Name charset: trigger names must match ^[A-Za-z0-9_-]+$; they are embedded verbatim into the webhook route /v1/triggers/{name}, so whitespace or slashes would silently break routing.

Structs§

CompiledTrigger
CompiledTriggers