#[non_exhaustive]pub struct UniqueGiftInfo {
pub gift: UniqueGift,
pub origin: String,
pub last_resale_currency: Option<String>,
pub last_resale_amount: Option<i64>,
pub owned_gift_id: Option<String>,
pub transfer_star_count: Option<i64>,
pub next_transfer_date: Option<i64>,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gift: UniqueGiftInformation about the gift.
origin: StringOrigin of the gift.
One of "upgrade", "transfer", or "resale".
last_resale_currency: Option<String>Currency of the last resale, if the gift was bought from another user.
last_resale_amount: Option<i64>Amount paid at the last resale, in the smallest unit of the currency.
owned_gift_id: Option<String>Identifier of the received gift for the bot.
transfer_star_count: Option<i64>Number of Telegram Stars that must be paid to transfer the gift.
next_transfer_date: Option<i64>Point in time when the gift can be transferred, as a Unix timestamp.
Trait Implementations§
Source§impl Clone for UniqueGiftInfo
impl Clone for UniqueGiftInfo
Source§fn clone(&self) -> UniqueGiftInfo
fn clone(&self) -> UniqueGiftInfo
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 UniqueGiftInfo
impl Debug for UniqueGiftInfo
Source§impl<'de> Deserialize<'de> for UniqueGiftInfo
impl<'de> Deserialize<'de> for UniqueGiftInfo
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 UniqueGiftInfo
impl RefUnwindSafe for UniqueGiftInfo
impl Send for UniqueGiftInfo
impl Sync for UniqueGiftInfo
impl Unpin for UniqueGiftInfo
impl UnsafeUnpin for UniqueGiftInfo
impl UnwindSafe for UniqueGiftInfo
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