#[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§
source§impl<'de> Deserialize<'de> for UserRole
impl<'de> Deserialize<'de> for UserRole
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoEnumIterator for UserRole
impl IntoEnumIterator for UserRole
type Iterator = UserRoleIter
fn iter() -> UserRoleIter ⓘ
source§impl Ord for UserRole
impl Ord for UserRole
source§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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)