Expand description
Preset expansion: {"preset": ..., ...} → Vec<RawRule>.
Presets are opinionated compile-stage expansions that turn high-level
intent into raw-rule bundles. The four built-in presets are
reverse_proxy, port_forward, static_site, and redirect_https.
Structs§
- Preset
Invocation - User-authored preset invocation. The
presetfield discriminates which expander runs;argsis opaque at parse time and validated inside the expander.
Enums§
- Rule
Entry - File-level entry: either a hand-written raw rule or a preset
invocation that expands to one or more raw rules. Discrimination is
by presence of the top-level
presetkey — the customDeserializepeeks at the JSON before routing to the right variant so a malformed preset payload produces a pointed error instead of falling through toRawRuleparsing and surfacing a confusing “missing terminate” error.
Functions§
- expand_
invocation - Dispatch on
inv.presetto the appropriate expander.