pub trait Role:
Send
+ Sync
+ 'static {
const NAME: &'static str;
// Provided method
fn held_by(admin: &Admin, user_id: &Id, role: Option<&str>) -> bool { ... }
}Expand description
A role a route can require, named as it is stored in user.role. Implement it with
role!.
Required Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".