[][src]Enum discord_game_sdk::EntitlementKind

pub enum EntitlementKind {
    DeveloperGift,
    FreePurchase,
    PremiumPurchase,
    PremiumSubscription,
    Purchase,
    TestModePurchase,
    UserGift,
    Undefined(EDiscordEntitlementType),
}

Entitlement Type

Enum in official docs

Variants

DeveloperGift

Entitlement was gifted by a developer

FreePurchase

Entitlement was granted when the SKU was free

PremiumPurchase

Entitlement was claimed by user for free as a Nitro Subscriber

PremiumSubscription

Entitlement for a Discord Nitro subscription

Purchase

Entitlement was purchased

TestModePurchase

Entitlement was purchased by a dev in application test mode

UserGift

Entitlement was gifted by another user

Safety net for missing definitions

Trait Implementations

impl Clone for EntitlementKind[src]

impl Copy for EntitlementKind[src]

impl Debug for EntitlementKind[src]

impl Eq for EntitlementKind[src]

impl From<u32> for EntitlementKind[src]

impl Hash for EntitlementKind[src]

impl PartialEq<EntitlementKind> for EntitlementKind[src]

impl StructuralEq for EntitlementKind[src]

impl StructuralPartialEq for EntitlementKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.