Trait AccessHierarchy

Source
pub trait AccessHierarchy
where Self: Copy,
{ // Required methods fn supervisor(&self) -> Option<Self>; fn subordinate(&self) -> Option<Self>; }
Expand description

Defines a hierarchy with the possibility to define a supervisor and a subordinate. You can implement this either for your roles or groups if you give supervisors access to routes that have a subordinate role attached.

Required Methods§

Source

fn supervisor(&self) -> Option<Self>

Returns the role that is one level above self.

Source

fn subordinate(&self) -> Option<Self>

Returns the role one level below self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§