Skip to main content

HasAccess

Trait HasAccess 

Source
pub trait HasAccess {
    // Required method
    fn has_access(&self, a: &Access) -> bool;
}
Expand description

Trait for access control.

Required Methods§

Source

fn has_access(&self, a: &Access) -> bool

Checks if the user has the given access.

Implementors§