pub enum TelegramPaymentPurpose {
PremiumGiftCodes(TelegramPaymentPurposePremiumGiftCodes),
PremiumGiveaway(TelegramPaymentPurposePremiumGiveaway),
}
Variants§
PremiumGiftCodes(TelegramPaymentPurposePremiumGiftCodes)
The user creating Telegram Premium gift codes for other users
PremiumGiveaway(TelegramPaymentPurposePremiumGiveaway)
The user creating a Telegram Premium giveaway
Trait Implementations§
Source§impl Clone for TelegramPaymentPurpose
impl Clone for TelegramPaymentPurpose
Source§fn clone(&self) -> TelegramPaymentPurpose
fn clone(&self) -> TelegramPaymentPurpose
Returns a duplicate 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 TelegramPaymentPurpose
impl Debug for TelegramPaymentPurpose
Source§impl<'de> Deserialize<'de> for TelegramPaymentPurpose
impl<'de> Deserialize<'de> for TelegramPaymentPurpose
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 TelegramPaymentPurpose
impl PartialEq for TelegramPaymentPurpose
Source§impl Serialize for TelegramPaymentPurpose
impl Serialize for TelegramPaymentPurpose
impl StructuralPartialEq for TelegramPaymentPurpose
Auto Trait Implementations§
impl Freeze for TelegramPaymentPurpose
impl RefUnwindSafe for TelegramPaymentPurpose
impl Send for TelegramPaymentPurpose
impl Sync for TelegramPaymentPurpose
impl Unpin for TelegramPaymentPurpose
impl UnwindSafe for TelegramPaymentPurpose
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