#[repr(u8)]pub enum MemberFlags {
DidRejoin = 0,
CompletedOnboarding = 1,
BypassesVerification = 2,
StartedOnboarding = 3,
IsGuest = 4,
StartedServerGuide = 5,
CompletedServerGuide = 6,
AutomodQuarantinedName = 7,
DmSettingsUpsellAcknowledged = 9,
AutomodQuarantinedClanTag = 10,
}Variants§
DidRejoin = 0
CompletedOnboarding = 1
BypassesVerification = 2
StartedOnboarding = 3
IsGuest = 4
StartedServerGuide = 5
CompletedServerGuide = 6
AutomodQuarantinedName = 7
DmSettingsUpsellAcknowledged = 9
AutomodQuarantinedClanTag = 10
Implementations§
Source§impl MemberFlags
impl MemberFlags
pub fn bit_value(&self) -> u64
pub fn from_bit_position(bit: u8) -> Option<Self>
pub fn extract_flags(value: u64) -> Vec<Self>
pub fn combine_flags(flags: &[Self]) -> u64
Trait Implementations§
Source§impl Clone for MemberFlags
impl Clone for MemberFlags
Source§fn clone(&self) -> MemberFlags
fn clone(&self) -> MemberFlags
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 MemberFlags
Source§impl Debug for MemberFlags
impl Debug for MemberFlags
impl Eq for MemberFlags
Source§impl Hash for MemberFlags
impl Hash for MemberFlags
Source§impl PartialEq for MemberFlags
impl PartialEq for MemberFlags
Source§fn eq(&self, other: &MemberFlags) -> bool
fn eq(&self, other: &MemberFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemberFlags
Auto Trait Implementations§
impl Freeze for MemberFlags
impl RefUnwindSafe for MemberFlags
impl Send for MemberFlags
impl Sync for MemberFlags
impl Unpin for MemberFlags
impl UnsafeUnpin for MemberFlags
impl UnwindSafe for MemberFlags
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