Struct serenity::model::user::UserPublicFlags [−][src]
pub struct UserPublicFlags { pub bits: u32, }
Expand description
User’s public flags
Fields
bits: u32
Implementations
User’s flag as discord employee
User’s flag as partnered server owner
User’s flag as hypesquad events
User’s flag as bug hunter level 1
User’s flag as house bravery
User’s flag as house brilliance
User’s flag as house balance
User’s flag as early supporter
User’s flag as team user
User’s flag as system
User’s flag as bug hunter level 2
User’s flag as verified bot
User’s flag as early verified bot developer
User’s flag as discord certified moderator
Returns an empty set of flags
Returns the set containing all flags.
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Returns true
if there are flags common to both self
and other
.
Returns true
all of the flags in other
are contained within self
.
Inserts the specified flags in-place.
Removes the specified flags in-place.
Toggles the specified flags in-place.
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
Returns the intersection between the two sets of flags.
type Output = UserPublicFlags
type Output = UserPublicFlags
The resulting type after applying the &
operator.
Disables all flags disabled in the set.
Returns the union of the two sets of flags.
type Output = UserPublicFlags
type Output = UserPublicFlags
The resulting type after applying the |
operator.
Adds the set of flags.
Returns the left flags, but with all the right flags toggled.
type Output = UserPublicFlags
type Output = UserPublicFlags
The resulting type after applying the ^
operator.
Toggles the set of flags.
Deserialize this value from the given Serde deserializer. Read more
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Returns the complement of this set of flags.
type Output = UserPublicFlags
type Output = UserPublicFlags
The resulting type after applying the !
operator.
Returns the set difference of the two sets of flags.
type Output = UserPublicFlags
type Output = UserPublicFlags
The resulting type after applying the -
operator.
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for UserPublicFlags
impl Send for UserPublicFlags
impl Sync for UserPublicFlags
impl Unpin for UserPublicFlags
impl UnwindSafe for UserPublicFlags
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V