pub struct PremiumGiftCodePaymentOption {
pub currency: String,
pub amount: i64,
pub user_count: i32,
pub month_count: i32,
pub store_product_id: String,
pub store_product_quantity: i32,
}
Expand description
Describes an option for creating Telegram Premium gift codes
Fields§
§currency: String
ISO 4217 currency code for Telegram Premium gift code payment
amount: i64
The amount to pay, in the smallest units of the currency
user_count: i32
Number of users which will be able to activate the gift codes
month_count: i32
Number of months the Telegram Premium subscription will be active
store_product_id: String
Identifier of the store product associated with the option; may be empty if none
store_product_quantity: i32
Number of times the store product must be paid
Trait Implementations§
Source§impl Clone for PremiumGiftCodePaymentOption
impl Clone for PremiumGiftCodePaymentOption
Source§fn clone(&self) -> PremiumGiftCodePaymentOption
fn clone(&self) -> PremiumGiftCodePaymentOption
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 PremiumGiftCodePaymentOption
impl Debug for PremiumGiftCodePaymentOption
Source§impl Default for PremiumGiftCodePaymentOption
impl Default for PremiumGiftCodePaymentOption
Source§fn default() -> PremiumGiftCodePaymentOption
fn default() -> PremiumGiftCodePaymentOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumGiftCodePaymentOption
impl<'de> Deserialize<'de> for PremiumGiftCodePaymentOption
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 PremiumGiftCodePaymentOption
impl PartialEq for PremiumGiftCodePaymentOption
Source§fn eq(&self, other: &PremiumGiftCodePaymentOption) -> bool
fn eq(&self, other: &PremiumGiftCodePaymentOption) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PremiumGiftCodePaymentOption
Auto Trait Implementations§
impl Freeze for PremiumGiftCodePaymentOption
impl RefUnwindSafe for PremiumGiftCodePaymentOption
impl Send for PremiumGiftCodePaymentOption
impl Sync for PremiumGiftCodePaymentOption
impl Unpin for PremiumGiftCodePaymentOption
impl UnwindSafe for PremiumGiftCodePaymentOption
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