pub type AuthGuard = Arc<dyn Fn(&Request) -> bool + Send + Sync>;Expand description
Type alias for the authentication guard callback.
The guard receives a reference to the incoming request and returns
true if the request is authorized to access documentation endpoints,
or false to deny access with HTTP 403 Forbidden.
Aliased Typeยง
pub struct AuthGuard { /* private fields */ }