#[repr(u8)]pub enum EntitlementType {
Purchase = 1,
PremiumSubscription = 2,
DeveloperGift = 3,
TestModePurchase = 4,
FreePurchase = 5,
UserGift = 6,
PremiumPurchase = 7,
ApplicationSubscription = 8,
}Expand description
Type of entitlement.
Variants§
Purchase = 1
Entitlement was purchased by user.
PremiumSubscription = 2
Entitlement for Discord Nitro subscription.
DeveloperGift = 3
Entitlement was gifted by developer.
TestModePurchase = 4
Entitlement was purchased by a dev in application test mode.
FreePurchase = 5
Entitlement was granted when the SKU was free.
UserGift = 6
Entitlement was gifted by another user.
PremiumPurchase = 7
Entitlement was claimed by user for free as a Nitro subscriber.
ApplicationSubscription = 8
Entitlement was purchased as an app subscription.
Trait Implementations§
Source§impl Clone for EntitlementType
impl Clone for EntitlementType
Source§fn clone(&self) -> EntitlementType
fn clone(&self) -> EntitlementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntitlementType
impl Debug for EntitlementType
Source§impl<'de> Deserialize<'de> for EntitlementType
impl<'de> Deserialize<'de> for EntitlementType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<EntitlementType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EntitlementType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntitlementType
impl PartialEq for EntitlementType
Source§impl Serialize for EntitlementType
impl Serialize for EntitlementType
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 EntitlementType
impl Eq for EntitlementType
impl StructuralPartialEq for EntitlementType
Auto Trait Implementations§
impl Freeze for EntitlementType
impl RefUnwindSafe for EntitlementType
impl Send for EntitlementType
impl Sync for EntitlementType
impl Unpin for EntitlementType
impl UnwindSafe for EntitlementType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.