pub struct Sku {
pub id: Snowflake,
pub sku_type: SkuType,
pub application_id: Snowflake,
pub name: String,
pub slug: String,
pub flags: u64,
}Expand description
A SKU (Stock Keeping Unit) represents a premium offering.
Fields§
§id: SnowflakeID of SKU.
sku_type: SkuTypeType of SKU.
application_id: SnowflakeID of the parent application.
name: StringCustomer-facing name of the premium offering.
slug: StringSystem-generated URL slug based on the SKU’s name.
flags: u64SKU flags as a bitfield.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sku
impl<'de> Deserialize<'de> for Sku
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Sku
impl RefUnwindSafe for Sku
impl Send for Sku
impl Sync for Sku
impl Unpin for Sku
impl UnwindSafe for Sku
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