Enum UserRole
#[repr(u8)]pub enum UserRole {
SquadLeader = 0,
Lieutenant = 1,
Member = 2,
Invited = 3,
Applied = 4,
None = 5,
Invalid = 6,
}Expand description
Role of a user in the squad.
Variants§
SquadLeader = 0
User is leader (commander tag).
Lieutenant = 1
User is lieutenant.
Member = 2
User is regular member.
Invited = 3
User is invited.
Applied = 4
User has requested to join.
None = 5
User has left.
Invalid = 6
Internal only.
Trait Implementations§
§impl Ord for UserRole
impl Ord for UserRole
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 PartialOrd for UserRole
impl PartialOrd for UserRole
impl Copy for UserRole
impl Eq for UserRole
impl StructuralPartialEq for UserRole
Auto Trait Implementations§
impl Freeze for UserRole
impl RefUnwindSafe for UserRole
impl Send for UserRole
impl Sync for UserRole
impl Unpin for UserRole
impl UnsafeUnpin for UserRole
impl UnwindSafe for UserRole
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