pub trait HasAccess {
// Required method
fn has_access(&self, a: &Access) -> bool;
}Expand description
Trait for access control.
Required Methods§
Sourcefn has_access(&self, a: &Access) -> bool
fn has_access(&self, a: &Access) -> bool
Checks if the user has the given access.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".