pub struct TelegramPaymentPurposePremiumGiftCodes {
pub boosted_chat_id: i64,
pub currency: String,
pub amount: i64,
pub user_ids: Vec<i64>,
pub month_count: i32,
}
Expand description
The user creating Telegram Premium gift codes for other users
Fields§
§boosted_chat_id: i64
Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none
currency: String
ISO 4217 currency code of the payment currency
amount: i64
Paid amount, in the smallest units of the currency
user_ids: Vec<i64>
Identifiers of the users which can activate the gift codes
month_count: i32
Number of months the Telegram Premium subscription will be active for the users
Trait Implementations§
Source§impl Clone for TelegramPaymentPurposePremiumGiftCodes
impl Clone for TelegramPaymentPurposePremiumGiftCodes
Source§fn clone(&self) -> TelegramPaymentPurposePremiumGiftCodes
fn clone(&self) -> TelegramPaymentPurposePremiumGiftCodes
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 Default for TelegramPaymentPurposePremiumGiftCodes
impl Default for TelegramPaymentPurposePremiumGiftCodes
Source§fn default() -> TelegramPaymentPurposePremiumGiftCodes
fn default() -> TelegramPaymentPurposePremiumGiftCodes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelegramPaymentPurposePremiumGiftCodes
impl<'de> Deserialize<'de> for TelegramPaymentPurposePremiumGiftCodes
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 TelegramPaymentPurposePremiumGiftCodes
impl PartialEq for TelegramPaymentPurposePremiumGiftCodes
Source§fn eq(&self, other: &TelegramPaymentPurposePremiumGiftCodes) -> bool
fn eq(&self, other: &TelegramPaymentPurposePremiumGiftCodes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TelegramPaymentPurposePremiumGiftCodes
Auto Trait Implementations§
impl Freeze for TelegramPaymentPurposePremiumGiftCodes
impl RefUnwindSafe for TelegramPaymentPurposePremiumGiftCodes
impl Send for TelegramPaymentPurposePremiumGiftCodes
impl Sync for TelegramPaymentPurposePremiumGiftCodes
impl Unpin for TelegramPaymentPurposePremiumGiftCodes
impl UnwindSafe for TelegramPaymentPurposePremiumGiftCodes
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