pub struct StarTransactionTypeUpgradedGiftSale {
pub user_id: i64,
pub gift: UpgradedGift,
pub commission_per_mille: i32,
pub commission_star_amount: StarAmount,
pub via_offer: bool,
}Expand description
The transaction is a sale of an upgraded gift; relevant for regular users only
Fields§
§user_id: i64Identifier of the user who bought the gift
gift: UpgradedGiftThe gift
commission_per_mille: i32The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift
commission_star_amount: StarAmountThe Telegram Star amount that was received by Telegram; can be negative for refunds
via_offer: boolTrue, if the gift was sold through a purchase offer
Trait Implementations§
Source§impl Clone for StarTransactionTypeUpgradedGiftSale
impl Clone for StarTransactionTypeUpgradedGiftSale
Source§fn clone(&self) -> StarTransactionTypeUpgradedGiftSale
fn clone(&self) -> StarTransactionTypeUpgradedGiftSale
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for StarTransactionTypeUpgradedGiftSale
impl<'de> Deserialize<'de> for StarTransactionTypeUpgradedGiftSale
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 StarTransactionTypeUpgradedGiftSale
impl PartialEq for StarTransactionTypeUpgradedGiftSale
Source§fn eq(&self, other: &StarTransactionTypeUpgradedGiftSale) -> bool
fn eq(&self, other: &StarTransactionTypeUpgradedGiftSale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeUpgradedGiftSale
Auto Trait Implementations§
impl Freeze for StarTransactionTypeUpgradedGiftSale
impl RefUnwindSafe for StarTransactionTypeUpgradedGiftSale
impl Send for StarTransactionTypeUpgradedGiftSale
impl Sync for StarTransactionTypeUpgradedGiftSale
impl Unpin for StarTransactionTypeUpgradedGiftSale
impl UnsafeUnpin for StarTransactionTypeUpgradedGiftSale
impl UnwindSafe for StarTransactionTypeUpgradedGiftSale
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