pub struct TonTransactionTypeUpgradedGiftSale {
pub user_id: i64,
pub gift: UpgradedGift,
pub commission_per_mille: i32,
pub commission_toncoin_amount: i64,
pub via_offer: bool,
}Expand description
The transaction is a sale of an upgraded gift
Fields§
§user_id: i64Identifier of the user who bought the gift
gift: UpgradedGiftThe gift
commission_per_mille: i32The number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift
commission_toncoin_amount: i64The Toncoin amount that was received by the Telegram; in the smallest units of the currency
via_offer: boolTrue, if the gift was sold through a purchase offer
Trait Implementations§
Source§impl Clone for TonTransactionTypeUpgradedGiftSale
impl Clone for TonTransactionTypeUpgradedGiftSale
Source§fn clone(&self) -> TonTransactionTypeUpgradedGiftSale
fn clone(&self) -> TonTransactionTypeUpgradedGiftSale
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 TonTransactionTypeUpgradedGiftSale
impl<'de> Deserialize<'de> for TonTransactionTypeUpgradedGiftSale
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 TonTransactionTypeUpgradedGiftSale
impl PartialEq for TonTransactionTypeUpgradedGiftSale
Source§fn eq(&self, other: &TonTransactionTypeUpgradedGiftSale) -> bool
fn eq(&self, other: &TonTransactionTypeUpgradedGiftSale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TonTransactionTypeUpgradedGiftSale
Auto Trait Implementations§
impl Freeze for TonTransactionTypeUpgradedGiftSale
impl RefUnwindSafe for TonTransactionTypeUpgradedGiftSale
impl Send for TonTransactionTypeUpgradedGiftSale
impl Sync for TonTransactionTypeUpgradedGiftSale
impl Unpin for TonTransactionTypeUpgradedGiftSale
impl UnsafeUnpin for TonTransactionTypeUpgradedGiftSale
impl UnwindSafe for TonTransactionTypeUpgradedGiftSale
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