pub struct UniqueGift {
pub gift_id: String,
pub base_name: String,
pub name: String,
pub number: u32,
pub model: UniqueGiftModel,
pub symbol: UniqueGiftSymbol,
pub backdrop: UniqueGiftBackdrop,
pub is_premium: Option<bool>,
pub is_burned: Option<bool>,
pub is_from_blockchain: Option<bool>,
pub colors: Option<UniqueGiftColors>,
pub publisher_chat: Option<Chat>,
}Expand description
A unique gift upgraded from a regular gift.
Fields§
§gift_id: StringIdentifier of the regular gift from which this was upgraded.
base_name: StringHuman-readable name of the original regular gift.
name: StringUnique name usable in https://t.me/nft/... links and story areas.
number: u32Unique number among gifts upgraded from the same regular gift.
model: UniqueGiftModelModel of the gift.
symbol: UniqueGiftSymbolSymbol of the gift.
backdrop: UniqueGiftBackdropBackdrop of the gift.
true if the original regular gift was exclusively purchaseable by Premium subscribers.
is_burned: Option<bool>true if the gift was used to craft another gift and is no longer available.
is_from_blockchain: Option<bool>true if the gift is from the TON blockchain and cannot be resold or transferred.
colors: Option<UniqueGiftColors>Color scheme for the owner’s chat name, replies, and link previews.
publisher_chat: Option<Chat>Information about the chat that published the gift.
Trait Implementations§
Source§impl Clone for UniqueGift
impl Clone for UniqueGift
Source§fn clone(&self) -> UniqueGift
fn clone(&self) -> UniqueGift
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 Debug for UniqueGift
impl Debug for UniqueGift
Source§impl<'de> Deserialize<'de> for UniqueGift
impl<'de> Deserialize<'de> for UniqueGift
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
Auto Trait Implementations§
impl Freeze for UniqueGift
impl RefUnwindSafe for UniqueGift
impl Send for UniqueGift
impl Sync for UniqueGift
impl Unpin for UniqueGift
impl UnsafeUnpin for UniqueGift
impl UnwindSafe for UniqueGift
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