pub struct StorePaymentPurposePremiumGiftCodes {
pub boosted_chat_id: i64,
pub currency: String,
pub amount: i64,
pub user_ids: Vec<i64>,
}Expand description
The user creating Telegram Premium gift codes for other users
Fields§
§boosted_chat_id: i64Identifier 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: StringISO 4217 currency code of the payment currency
amount: i64Paid amount, in the smallest units of the currency
user_ids: Vec<i64>Identifiers of the users which can activate the gift codes
Trait Implementations§
Source§impl Clone for StorePaymentPurposePremiumGiftCodes
impl Clone for StorePaymentPurposePremiumGiftCodes
Source§fn clone(&self) -> StorePaymentPurposePremiumGiftCodes
fn clone(&self) -> StorePaymentPurposePremiumGiftCodes
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 Default for StorePaymentPurposePremiumGiftCodes
impl Default for StorePaymentPurposePremiumGiftCodes
Source§fn default() -> StorePaymentPurposePremiumGiftCodes
fn default() -> StorePaymentPurposePremiumGiftCodes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposePremiumGiftCodes
impl<'de> Deserialize<'de> for StorePaymentPurposePremiumGiftCodes
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 StorePaymentPurposePremiumGiftCodes
impl PartialEq for StorePaymentPurposePremiumGiftCodes
Source§fn eq(&self, other: &StorePaymentPurposePremiumGiftCodes) -> bool
fn eq(&self, other: &StorePaymentPurposePremiumGiftCodes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorePaymentPurposePremiumGiftCodes
Auto Trait Implementations§
impl Freeze for StorePaymentPurposePremiumGiftCodes
impl RefUnwindSafe for StorePaymentPurposePremiumGiftCodes
impl Send for StorePaymentPurposePremiumGiftCodes
impl Sync for StorePaymentPurposePremiumGiftCodes
impl Unpin for StorePaymentPurposePremiumGiftCodes
impl UnwindSafe for StorePaymentPurposePremiumGiftCodes
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