pub struct StarTransactionTypeBotSubscriptionPurchase {
pub user_id: i64,
pub subscription_period: i32,
pub product_info: ProductInfo,
}Expand description
The transaction is a purchase of a subscription from a bot or a business account by the current user; relevant for regular users only
Fields§
§user_id: i64Identifier of the bot or the business account user who created the subscription link
subscription_period: i32The number of seconds between consecutive Telegram Star debitings
product_info: ProductInfoInformation about the bought subscription
Trait Implementations§
Source§impl Clone for StarTransactionTypeBotSubscriptionPurchase
impl Clone for StarTransactionTypeBotSubscriptionPurchase
Source§fn clone(&self) -> StarTransactionTypeBotSubscriptionPurchase
fn clone(&self) -> StarTransactionTypeBotSubscriptionPurchase
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 StarTransactionTypeBotSubscriptionPurchase
impl Default for StarTransactionTypeBotSubscriptionPurchase
Source§fn default() -> StarTransactionTypeBotSubscriptionPurchase
fn default() -> StarTransactionTypeBotSubscriptionPurchase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeBotSubscriptionPurchase
impl<'de> Deserialize<'de> for StarTransactionTypeBotSubscriptionPurchase
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 StarTransactionTypeBotSubscriptionPurchase
impl PartialEq for StarTransactionTypeBotSubscriptionPurchase
Source§fn eq(&self, other: &StarTransactionTypeBotSubscriptionPurchase) -> bool
fn eq(&self, other: &StarTransactionTypeBotSubscriptionPurchase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeBotSubscriptionPurchase
Auto Trait Implementations§
impl Freeze for StarTransactionTypeBotSubscriptionPurchase
impl RefUnwindSafe for StarTransactionTypeBotSubscriptionPurchase
impl Send for StarTransactionTypeBotSubscriptionPurchase
impl Sync for StarTransactionTypeBotSubscriptionPurchase
impl Unpin for StarTransactionTypeBotSubscriptionPurchase
impl UnsafeUnpin for StarTransactionTypeBotSubscriptionPurchase
impl UnwindSafe for StarTransactionTypeBotSubscriptionPurchase
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