pub struct GiftAuctionAcquiredGift {
pub receiver_id: MessageSender,
pub date: i32,
pub star_count: i64,
pub auction_round_number: i32,
pub auction_round_position: i32,
pub unique_gift_number: i32,
pub text: FormattedText,
pub is_private: bool,
}Expand description
Represents a gift that was acquired by the current user on an auction
Fields§
§receiver_id: MessageSenderReceiver of the gift
date: i32Point in time (Unix timestamp) when the gift was acquired
star_count: i64The number of Telegram Stars that were paid for the gift
auction_round_number: i32Identifier of the auction round in which the gift was acquired
auction_round_position: i32Position of the user in the round among all auction participants
unique_gift_number: i32Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned
text: FormattedTextMessage added to the gift
is_private: boolTrue, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
Trait Implementations§
Source§impl Clone for GiftAuctionAcquiredGift
impl Clone for GiftAuctionAcquiredGift
Source§fn clone(&self) -> GiftAuctionAcquiredGift
fn clone(&self) -> GiftAuctionAcquiredGift
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 Debug for GiftAuctionAcquiredGift
impl Debug for GiftAuctionAcquiredGift
Source§impl<'de> Deserialize<'de> for GiftAuctionAcquiredGift
impl<'de> Deserialize<'de> for GiftAuctionAcquiredGift
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 GiftAuctionAcquiredGift
impl PartialEq for GiftAuctionAcquiredGift
Source§fn eq(&self, other: &GiftAuctionAcquiredGift) -> bool
fn eq(&self, other: &GiftAuctionAcquiredGift) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GiftAuctionAcquiredGift
impl Serialize for GiftAuctionAcquiredGift
impl StructuralPartialEq for GiftAuctionAcquiredGift
Auto Trait Implementations§
impl Freeze for GiftAuctionAcquiredGift
impl RefUnwindSafe for GiftAuctionAcquiredGift
impl Send for GiftAuctionAcquiredGift
impl Sync for GiftAuctionAcquiredGift
impl Unpin for GiftAuctionAcquiredGift
impl UnsafeUnpin for GiftAuctionAcquiredGift
impl UnwindSafe for GiftAuctionAcquiredGift
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