Enum PermissionLevel
#[non_exhaustive]pub enum PermissionLevel {
All,
Moderators,
Gamemasters,
Admins,
Owners,
}Expand description
PermissionLevel: how much a player may do, as op-permission-level and
the operator list name it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
0: every player.
Moderators
1: moderators.
Gamemasters
2: game masters.
Admins
3: admins.
Owners
4: owners.
Implementations§
§impl PermissionLevel
impl PermissionLevel
pub fn from_level(level: i32) -> PermissionLevel
pub fn from_level(level: i32) -> PermissionLevel
The level a list entry’s number names; out of range keeps to 0 or 4.
Trait Implementations§
§impl Clone for PermissionLevel
impl Clone for PermissionLevel
§fn clone(&self) -> PermissionLevel
fn clone(&self) -> PermissionLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PermissionLevel
§impl Debug for PermissionLevel
impl Debug for PermissionLevel
impl Eq for PermissionLevel
§impl Ord for PermissionLevel
impl Ord for PermissionLevel
§fn cmp(&self, other: &PermissionLevel) -> Ordering
fn cmp(&self, other: &PermissionLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for PermissionLevel
impl PartialEq for PermissionLevel
§impl PartialOrd for PermissionLevel
impl PartialOrd for PermissionLevel
impl StructuralPartialEq for PermissionLevel
Auto Trait Implementations§
impl Freeze for PermissionLevel
impl RefUnwindSafe for PermissionLevel
impl Send for PermissionLevel
impl Sync for PermissionLevel
impl Unpin for PermissionLevel
impl UnsafeUnpin for PermissionLevel
impl UnwindSafe for PermissionLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more