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.