Struct twilight_model::channel::message::RoleSubscriptionData
source · pub struct RoleSubscriptionData {
pub is_renewal: bool,
pub role_subscription_listing_id: Id<RoleSubscriptionSkuMarker>,
pub tier_name: String,
pub total_months_subscribed: u16,
}
Expand description
Information about a role subscription that created a Message
.
Fields§
§is_renewal: bool
Whether this notification is for a renewal rather than a new purchase.
role_subscription_listing_id: Id<RoleSubscriptionSkuMarker>
ID of the SKU and listing that the user is subscribed to.
tier_name: String
Name of the tier that the user is subscribed to.
total_months_subscribed: u16
Cumulative number of months that the user has been subscribed for.
Trait Implementations§
source§impl Clone for RoleSubscriptionData
impl Clone for RoleSubscriptionData
source§fn clone(&self) -> RoleSubscriptionData
fn clone(&self) -> RoleSubscriptionData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RoleSubscriptionData
impl Debug for RoleSubscriptionData
source§impl<'de> Deserialize<'de> for RoleSubscriptionData
impl<'de> Deserialize<'de> for RoleSubscriptionData
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
source§impl Hash for RoleSubscriptionData
impl Hash for RoleSubscriptionData
source§impl PartialEq<RoleSubscriptionData> for RoleSubscriptionData
impl PartialEq<RoleSubscriptionData> for RoleSubscriptionData
source§fn eq(&self, other: &RoleSubscriptionData) -> bool
fn eq(&self, other: &RoleSubscriptionData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.