pub trait AccessHierarchywhere
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§
Sourcefn supervisor(&self) -> Option<Self>
fn supervisor(&self) -> Option<Self>
Returns the role that is one level above self
.
Sourcefn subordinate(&self) -> Option<Self>
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.