pub trait CacheableRole:
From<Role>
+ PartialEq<Role>
+ PartialEq<Self>
+ Clone
+ Debug {
// Required methods
fn position(&self) -> i64;
fn id(&self) -> Id<RoleMarker>;
fn permissions(&self) -> Permissions;
}Expand description
Trait for a generic cached representation of a [Role].
Required Methods§
Sourcefn permissions(&self) -> Permissions
Available on crate feature permission-calculator only.
fn permissions(&self) -> Permissions
permission-calculator only.Permissions granted to members with the role.
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.