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