pub struct StarTransactionTypeBotInvoiceSale {
pub user_id: i64,
pub product_info: ProductInfo,
pub invoice_payload: String,
pub affiliate: Option<AffiliateInfo>,
}Expand description
The transaction is a sale of a product by the bot; relevant for bots only
Fields§
§user_id: i64Identifier of the user who bought the product
product_info: ProductInfoInformation about the bought product
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 StarTransactionTypeBotInvoiceSale
impl Clone for StarTransactionTypeBotInvoiceSale
Source§fn clone(&self) -> StarTransactionTypeBotInvoiceSale
fn clone(&self) -> StarTransactionTypeBotInvoiceSale
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 StarTransactionTypeBotInvoiceSale
impl Default for StarTransactionTypeBotInvoiceSale
Source§fn default() -> StarTransactionTypeBotInvoiceSale
fn default() -> StarTransactionTypeBotInvoiceSale
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeBotInvoiceSale
impl<'de> Deserialize<'de> for StarTransactionTypeBotInvoiceSale
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 StarTransactionTypeBotInvoiceSale
impl PartialEq for StarTransactionTypeBotInvoiceSale
Source§fn eq(&self, other: &StarTransactionTypeBotInvoiceSale) -> bool
fn eq(&self, other: &StarTransactionTypeBotInvoiceSale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeBotInvoiceSale
Auto Trait Implementations§
impl Freeze for StarTransactionTypeBotInvoiceSale
impl RefUnwindSafe for StarTransactionTypeBotInvoiceSale
impl Send for StarTransactionTypeBotInvoiceSale
impl Sync for StarTransactionTypeBotInvoiceSale
impl Unpin for StarTransactionTypeBotInvoiceSale
impl UnsafeUnpin for StarTransactionTypeBotInvoiceSale
impl UnwindSafe for StarTransactionTypeBotInvoiceSale
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