Skip to main content

inject_service_defaults

Function inject_service_defaults 

Source
pub fn inject_service_defaults(svc: &mut ServiceDecl)
Expand description

Inject a single service’s by/given defaults into its handlers. A handler that names its own by (or given) overrides the default outright — the default fills only an absent clause, never merges. A service with no default is left untouched (byte-for-byte the pre-v0.155 behaviour).