#[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<UserRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserRole, <__D as Deserializer<'de>>::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
Source§impl Serialize for UserRole
impl Serialize for UserRole
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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