pub struct StarTransactionTypeChannelPaidMediaSale {
pub user_id: i64,
pub message_id: i64,
pub media: Vec<PaidMedia>,
}Expand description
The transaction is a sale of paid media by the channel chat; relevant for channel chats only
Fields§
§user_id: i64Identifier of the user who bought the 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
Trait Implementations§
Source§impl Clone for StarTransactionTypeChannelPaidMediaSale
impl Clone for StarTransactionTypeChannelPaidMediaSale
Source§fn clone(&self) -> StarTransactionTypeChannelPaidMediaSale
fn clone(&self) -> StarTransactionTypeChannelPaidMediaSale
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 StarTransactionTypeChannelPaidMediaSale
impl Default for StarTransactionTypeChannelPaidMediaSale
Source§fn default() -> StarTransactionTypeChannelPaidMediaSale
fn default() -> StarTransactionTypeChannelPaidMediaSale
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeChannelPaidMediaSale
impl<'de> Deserialize<'de> for StarTransactionTypeChannelPaidMediaSale
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 StarTransactionTypeChannelPaidMediaSale
impl PartialEq for StarTransactionTypeChannelPaidMediaSale
Source§fn eq(&self, other: &StarTransactionTypeChannelPaidMediaSale) -> bool
fn eq(&self, other: &StarTransactionTypeChannelPaidMediaSale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeChannelPaidMediaSale
Auto Trait Implementations§
impl Freeze for StarTransactionTypeChannelPaidMediaSale
impl RefUnwindSafe for StarTransactionTypeChannelPaidMediaSale
impl Send for StarTransactionTypeChannelPaidMediaSale
impl Sync for StarTransactionTypeChannelPaidMediaSale
impl Unpin for StarTransactionTypeChannelPaidMediaSale
impl UnsafeUnpin for StarTransactionTypeChannelPaidMediaSale
impl UnwindSafe for StarTransactionTypeChannelPaidMediaSale
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