#[repr(u8)]pub enum ApplicationFlags {
Show 25 variants
EmbeddedReleased = 1,
ManagedEmoji = 2,
EmbeddedIap = 3,
GroupDmCreate = 4,
AutoModerationRuleCreateBadge = 6,
GameProfileDisabled = 7,
PublicOauth2Client = 8,
ContextlessActivity = 9,
GatewayPresence = 12,
GatewayPresenceLimited = 13,
GatewayGuildMembers = 14,
GatewayGuildMembersLimited = 15,
VerificationPendingGuildLimit = 16,
Embedded = 17,
GatewayMessageContent = 18,
GatewayMessageContentLimited = 19,
EmbeddedFirstParty = 20,
ApplicationCommandMigrated = 21,
ApplicationCommandBadge = 23,
Active = 24,
ActiveGracePeriod1 = 25,
IframeModal = 26,
SocialLayerIntegration = 27,
Promoted = 29,
Partner = 30,
}Variants§
EmbeddedReleased = 1
ManagedEmoji = 2
EmbeddedIap = 3
GroupDmCreate = 4
AutoModerationRuleCreateBadge = 6
GameProfileDisabled = 7
PublicOauth2Client = 8
ContextlessActivity = 9
GatewayPresence = 12
GatewayPresenceLimited = 13
GatewayGuildMembers = 14
GatewayGuildMembersLimited = 15
VerificationPendingGuildLimit = 16
Embedded = 17
GatewayMessageContent = 18
GatewayMessageContentLimited = 19
EmbeddedFirstParty = 20
ApplicationCommandMigrated = 21
ApplicationCommandBadge = 23
Active = 24
ActiveGracePeriod1 = 25
IframeModal = 26
SocialLayerIntegration = 27
Promoted = 29
Partner = 30
Implementations§
Source§impl ApplicationFlags
impl ApplicationFlags
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 ApplicationFlags
impl Clone for ApplicationFlags
Source§fn clone(&self) -> ApplicationFlags
fn clone(&self) -> ApplicationFlags
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 ApplicationFlags
Source§impl Debug for ApplicationFlags
impl Debug for ApplicationFlags
impl Eq for ApplicationFlags
Source§impl Hash for ApplicationFlags
impl Hash for ApplicationFlags
Source§impl PartialEq for ApplicationFlags
impl PartialEq for ApplicationFlags
Source§fn eq(&self, other: &ApplicationFlags) -> bool
fn eq(&self, other: &ApplicationFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplicationFlags
Auto Trait Implementations§
impl Freeze for ApplicationFlags
impl RefUnwindSafe for ApplicationFlags
impl Send for ApplicationFlags
impl Sync for ApplicationFlags
impl Unpin for ApplicationFlags
impl UnsafeUnpin for ApplicationFlags
impl UnwindSafe for ApplicationFlags
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