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 id(&self) -> Id<RoleMarker>
fn id(&self) -> Id<RoleMarker>
ID of the role.
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.
Implementations on Foreign Types§
Source§impl CacheableRole for Role
impl CacheableRole for Role
fn position(&self) -> i64
fn id(&self) -> Id<RoleMarker>
Source§fn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Available on crate feature
permission-calculator
only.