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