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 for RoleSubscriptionData
impl PartialEq for RoleSubscriptionData
source§impl Serialize for RoleSubscriptionData
impl Serialize for RoleSubscriptionData
impl Eq for RoleSubscriptionData
impl StructuralPartialEq for RoleSubscriptionData
Auto Trait Implementations§
impl Freeze for RoleSubscriptionData
impl RefUnwindSafe for RoleSubscriptionData
impl Send for RoleSubscriptionData
impl Sync for RoleSubscriptionData
impl Unpin for RoleSubscriptionData
impl UnwindSafe for RoleSubscriptionData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)