[−][src]Struct discord_game_sdk::Sku
SKU (stock keeping unit)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,