pub struct Sku {
pub id: SkuId,
pub kind: SkuKind,
pub application_id: ApplicationId,
pub name: String,
pub slug: String,
pub flags: SkuFlags,
}Expand description
A premium offering that can be made available to an application’s users and guilds.
Fields§
§id: SkuIdThe unique ID of the SKU.
kind: SkuKindThe class of the SKU.
application_id: ApplicationIdId of the SKU’s parent application.
name: StringThe customer-facing name of the premium offering.
slug: StringA system-generated URL slug based on the SKU.
flags: SkuFlagsFlags indicating the type of subscription the SKU represents.
Implementations§
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