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