pub struct RouteYaml {
pub pre_invocation: Vec<Value>,
pub post_invocation: Vec<Value>,
pub authorization: Option<AuthorizationYaml>,
pub args: HashMap<String, String>,
pub result: HashMap<String, String>,
pub plugins: HashMap<String, PluginOverride>,
pub other: HashMap<String, Value>,
}Fields§
§pre_invocation: Vec<Value>Flat pre-invocation authorization effects (was policy:). Each
entry is either a string (rule / plugin / taint) or a single-key
map (PDP call with reactions). See parse_step. Merged with any
authorization.pre_invocation entries.
post_invocation: Vec<Value>Flat post-invocation authorization effects (was post_policy:).
Merged with any authorization.post_invocation entries.
Nested authorization: block — { pre_invocation, post_invocation }.
Equivalent to the flat forms; entries from both are concatenated.
args: HashMap<String, String>args: field → pipe-chain string. Compiled to per-field pipelines.
result: HashMap<String, String>result: field → pipe-chain string. Compiled to per-field pipelines.
plugins: HashMap<String, PluginOverride>Per-route plugin overrides — only the spec-overridable keys
(config / capabilities / on_error). Merged on top of the root
plugins: declaration at dispatch time.
other: HashMap<String, Value>Anything else on the route (meta, taint, when) — stashed. Also
where renamed legacy keys land; reject_legacy_keys fails loudly
on them so a dropped authz block never fails open.