pub struct StarTransactionTypePremiumPurchase {
pub user_id: i64,
pub month_count: i32,
pub sticker: Option<Sticker>,
}Expand description
The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only
Fields§
§user_id: i64Identifier of the user who received the Telegram Premium subscription
month_count: i32Number of months the Telegram Premium subscription will be active
sticker: Option<Sticker>A sticker to be shown in the transaction information; may be null if unknown
Trait Implementations§
Source§impl Clone for StarTransactionTypePremiumPurchase
impl Clone for StarTransactionTypePremiumPurchase
Source§fn clone(&self) -> StarTransactionTypePremiumPurchase
fn clone(&self) -> StarTransactionTypePremiumPurchase
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<'de> Deserialize<'de> for StarTransactionTypePremiumPurchase
impl<'de> Deserialize<'de> for StarTransactionTypePremiumPurchase
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 StarTransactionTypePremiumPurchase
impl PartialEq for StarTransactionTypePremiumPurchase
Source§fn eq(&self, other: &StarTransactionTypePremiumPurchase) -> bool
fn eq(&self, other: &StarTransactionTypePremiumPurchase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypePremiumPurchase
Auto Trait Implementations§
impl Freeze for StarTransactionTypePremiumPurchase
impl RefUnwindSafe for StarTransactionTypePremiumPurchase
impl Send for StarTransactionTypePremiumPurchase
impl Sync for StarTransactionTypePremiumPurchase
impl Unpin for StarTransactionTypePremiumPurchase
impl UnsafeUnpin for StarTransactionTypePremiumPurchase
impl UnwindSafe for StarTransactionTypePremiumPurchase
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