pub enum StorePaymentPurpose {
PremiumSubscription(StorePaymentPurposePremiumSubscription),
GiftedPremium(StorePaymentPurposeGiftedPremium),
PremiumGiftCodes(StorePaymentPurposePremiumGiftCodes),
PremiumGiveaway(StorePaymentPurposePremiumGiveaway),
}Variants§
PremiumSubscription(StorePaymentPurposePremiumSubscription)
The user subscribing to Telegram Premium
GiftedPremium(StorePaymentPurposeGiftedPremium)
The user gifting Telegram Premium to another user
PremiumGiftCodes(StorePaymentPurposePremiumGiftCodes)
The user creating Telegram Premium gift codes for other users
PremiumGiveaway(StorePaymentPurposePremiumGiveaway)
The user creating a Telegram Premium giveaway
Trait Implementations§
Source§impl Clone for StorePaymentPurpose
impl Clone for StorePaymentPurpose
Source§fn clone(&self) -> StorePaymentPurpose
fn clone(&self) -> StorePaymentPurpose
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 StorePaymentPurpose
impl Debug for StorePaymentPurpose
Source§impl<'de> Deserialize<'de> for StorePaymentPurpose
impl<'de> Deserialize<'de> for StorePaymentPurpose
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 PartialEq for StorePaymentPurpose
impl PartialEq for StorePaymentPurpose
Source§impl Serialize for StorePaymentPurpose
impl Serialize for StorePaymentPurpose
impl StructuralPartialEq for StorePaymentPurpose
Auto Trait Implementations§
impl Freeze for StorePaymentPurpose
impl RefUnwindSafe for StorePaymentPurpose
impl Send for StorePaymentPurpose
impl Sync for StorePaymentPurpose
impl Unpin for StorePaymentPurpose
impl UnwindSafe for StorePaymentPurpose
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