pub struct StarTransactionTypeBotSubscriptionSale {
pub user_id: i64,
pub subscription_period: i32,
pub product_info: ProductInfo,
pub invoice_payload: String,
pub affiliate: Option<AffiliateInfo>,
}Expand description
The transaction is a sale of a subscription by the bot; relevant for bots only
Fields§
§user_id: i64Identifier of the user who bought the subscription
subscription_period: i32The number of seconds between consecutive Telegram Star debitings
product_info: ProductInfoInformation about the bought subscription
invoice_payload: StringInvoice payload
affiliate: Option<AffiliateInfo>Information about the affiliate which received commission from the transaction; may be null if none
Trait Implementations§
Source§impl Clone for StarTransactionTypeBotSubscriptionSale
impl Clone for StarTransactionTypeBotSubscriptionSale
Source§fn clone(&self) -> StarTransactionTypeBotSubscriptionSale
fn clone(&self) -> StarTransactionTypeBotSubscriptionSale
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 StarTransactionTypeBotSubscriptionSale
impl Default for StarTransactionTypeBotSubscriptionSale
Source§fn default() -> StarTransactionTypeBotSubscriptionSale
fn default() -> StarTransactionTypeBotSubscriptionSale
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeBotSubscriptionSale
impl<'de> Deserialize<'de> for StarTransactionTypeBotSubscriptionSale
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 StarTransactionTypeBotSubscriptionSale
impl PartialEq for StarTransactionTypeBotSubscriptionSale
Source§fn eq(&self, other: &StarTransactionTypeBotSubscriptionSale) -> bool
fn eq(&self, other: &StarTransactionTypeBotSubscriptionSale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeBotSubscriptionSale
Auto Trait Implementations§
impl Freeze for StarTransactionTypeBotSubscriptionSale
impl RefUnwindSafe for StarTransactionTypeBotSubscriptionSale
impl Send for StarTransactionTypeBotSubscriptionSale
impl Sync for StarTransactionTypeBotSubscriptionSale
impl Unpin for StarTransactionTypeBotSubscriptionSale
impl UnsafeUnpin for StarTransactionTypeBotSubscriptionSale
impl UnwindSafe for StarTransactionTypeBotSubscriptionSale
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