[][src]Struct discord_game_sdk::Sku

#[repr(transparent)]pub struct Sku(_);

SKU (stock keeping unit)

Struct in official docs

Implementations

impl Sku[src]

pub fn id(&self) -> Snowflake[src]

The unique ID of the SKU

pub fn kind(&self) -> SkuKind[src]

What sort of SKU it is

pub fn name(&self) -> &str[src]

The name of the SKU

pub fn price_amount(&self) -> u32[src]

The amount of money that the SKU costs

pub fn price_currency(&self) -> &str[src]

The currency that price_amount is in

Trait Implementations

impl Clone for Sku[src]

impl Debug for Sku[src]

impl Eq for Sku[src]

impl PartialEq<Sku> for Sku[src]

impl StructuralEq for Sku[src]

impl StructuralPartialEq for Sku[src]

Auto Trait Implementations

impl RefUnwindSafe for Sku

impl Send for Sku

impl Sync for Sku

impl Unpin for Sku

impl UnwindSafe for Sku

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.