Skip to main content

require

Function require 

Source
pub fn require(face: HttpFace, id: &str) -> &'static PublicExemption
Expand description

Looks up an exemption by id. Router builders use this to reference the reviewed path/method rather than a string literal, so a typo or unregistered route is caught at startup instead of silently bypassing MAC.

Panics if id is not in the registry — a public route must be registered.