pub struct TransactionPartnerUser {
pub transaction_type: String,
pub user: User,
pub affiliate: Option<AffiliateInfo>,
pub invoice_payload: Option<String>,
pub subscription_period: Option<i64>,
pub paid_media: Option<Vec<Value>>,
pub paid_media_payload: Option<String>,
pub gift: Option<Gift>,
pub premium_subscription_duration: Option<i64>,
}Expand description
A transaction with a user.
Fields§
§transaction_type: StringType of the transaction.
One of "invoice_payment", "paid_media_payment", "gift_purchase",
"premium_purchase", or "business_account_transfer".
user: UserThe user involved in the transaction.
affiliate: Option<AffiliateInfo>Affiliate commission information; available for invoice and paid media payments.
invoice_payload: Option<String>Bot-specified invoice payload; available for "invoice_payment" only.
subscription_period: Option<i64>Duration of the paid subscription; available for "invoice_payment" only.
paid_media: Option<Vec<Value>>Paid media bought by the user; available for "paid_media_payment" only.
paid_media_payload: Option<String>Bot-specified paid media payload; available for "paid_media_payment" only.
gift: Option<Gift>The gift sent to the user; available for "gift_purchase" only.
Months of Premium gifted; available for "premium_purchase" only.
Trait Implementations§
Source§impl Clone for TransactionPartnerUser
impl Clone for TransactionPartnerUser
Source§fn clone(&self) -> TransactionPartnerUser
fn clone(&self) -> TransactionPartnerUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionPartnerUser
impl Debug for TransactionPartnerUser
Source§impl<'de> Deserialize<'de> for TransactionPartnerUser
impl<'de> Deserialize<'de> for TransactionPartnerUser
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
Auto Trait Implementations§
impl Freeze for TransactionPartnerUser
impl RefUnwindSafe for TransactionPartnerUser
impl Send for TransactionPartnerUser
impl Sync for TransactionPartnerUser
impl Unpin for TransactionPartnerUser
impl UnsafeUnpin for TransactionPartnerUser
impl UnwindSafe for TransactionPartnerUser
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