pub struct RouteIdentityConfig {
pub steps: Vec<RouteIdentityStep>,
pub replace_inherited: bool,
}Expand description
A route’s parsed identity: block. Drives dispatch of the
identity.resolve hook for the route.
None on a RouteEntry means “no identity declared for this
route” — invoke_named::<IdentityHook> will return an empty
entry list when filtered for this route, and the host’s
IdentityPayload flows through unchanged (no resolvers fire).
Inheritance (Slice C, deferred) walks global → tags → route
and merges each layer’s RouteIdentityConfig based on
replace_inherited: when false (the default), the new layer’s
steps append after the inherited ones; when true, the new
layer’s steps replace the inherited list wholesale.
Fields§
§steps: Vec<RouteIdentityStep>Ordered list of identity steps to run. Empty list is valid:
identity: { replace_inherited: true, steps: [] } is the
“explicitly opt out of inherited identity” knob.
replace_inherited: boolWhen true, this block replaces any inherited identity steps
instead of appending to them. Set via the object-form YAML
(identity: { replace_inherited: true, steps: [...] }).
The list-form YAML always produces false.
Honored by the inheritance merge once Slice C lands. Slice A stores the flag without exercising its merge semantics (no inheritance to override yet at route level).
Trait Implementations§
Source§impl Clone for RouteIdentityConfig
impl Clone for RouteIdentityConfig
Source§fn clone(&self) -> RouteIdentityConfig
fn clone(&self) -> RouteIdentityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more