Skip to main content

AuthzRouterExt

Trait AuthzRouterExt 

Source
trait AuthzRouterExt {
    // Required method
    fn authorize(self, roles: AllowedRoles) -> Self;
}
Expand description

Router extension for attaching the authorization middleware.

Required Methods§

Source

fn authorize(self, roles: AllowedRoles) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S> AuthzRouterExt for Router<S>
where S: Clone + Send + Sync + 'static,

Source§

fn authorize(self, roles: AllowedRoles) -> Router<S>

Implementors§