pub struct StarTransactionTypeChannelPaidMediaPurchase {
pub chat_id: i64,
pub message_id: i64,
pub media: Vec<PaidMedia>,
}Expand description
The transaction is a purchase of paid media from a channel by the current user; relevant for regular users only
Fields§
§chat_id: i64Identifier of the channel chat that sent the paid media
message_id: i64Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message
media: Vec<PaidMedia>The bought media if the transaction wasn’t refunded
Trait Implementations§
Source§impl Clone for StarTransactionTypeChannelPaidMediaPurchase
impl Clone for StarTransactionTypeChannelPaidMediaPurchase
Source§fn clone(&self) -> StarTransactionTypeChannelPaidMediaPurchase
fn clone(&self) -> StarTransactionTypeChannelPaidMediaPurchase
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 StarTransactionTypeChannelPaidMediaPurchase
impl Default for StarTransactionTypeChannelPaidMediaPurchase
Source§fn default() -> StarTransactionTypeChannelPaidMediaPurchase
fn default() -> StarTransactionTypeChannelPaidMediaPurchase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeChannelPaidMediaPurchase
impl<'de> Deserialize<'de> for StarTransactionTypeChannelPaidMediaPurchase
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 StarTransactionTypeChannelPaidMediaPurchase
impl PartialEq for StarTransactionTypeChannelPaidMediaPurchase
Source§fn eq(&self, other: &StarTransactionTypeChannelPaidMediaPurchase) -> bool
fn eq(&self, other: &StarTransactionTypeChannelPaidMediaPurchase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeChannelPaidMediaPurchase
Auto Trait Implementations§
impl Freeze for StarTransactionTypeChannelPaidMediaPurchase
impl RefUnwindSafe for StarTransactionTypeChannelPaidMediaPurchase
impl Send for StarTransactionTypeChannelPaidMediaPurchase
impl Sync for StarTransactionTypeChannelPaidMediaPurchase
impl Unpin for StarTransactionTypeChannelPaidMediaPurchase
impl UnsafeUnpin for StarTransactionTypeChannelPaidMediaPurchase
impl UnwindSafe for StarTransactionTypeChannelPaidMediaPurchase
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