pub struct UniqueGiftInfo {
pub gift: UniqueGift,
pub origin: UniqueGiftOrigin,
pub last_resale_currency: Option<String>,
pub last_resale_amount: Option<u32>,
pub owned_gift_id: Option<OwnedGiftId>,
pub transfer_star_count: Option<u32>,
pub next_transfer_date: Option<DateTime<Utc>>,
pub text: Option<String>,
pub entities: Option<Vec<MessageEntity>>,
pub is_private: Option<bool>,
}Expand description
Describes a service message about a unique gift that was sent or received.
Fields§
§gift: UniqueGiftInformation about the gift
origin: UniqueGiftOriginOrigin of the gift. Currently, either upgrade for gifts upgraded from
regular gifts, transfer for gifts transferred from other users or
channels, resale for gifts bought from other users, gifted_upgrade
for upgrades purchased after the gift was sent, or offer for gifts
bought or sold through gift purchase offers
last_resale_currency: Option<String>For gifts bought from other users, currency for the price paid for the gift (“XTR” for Telegram Stars or the ISO 4217 currency code)
last_resale_amount: Option<u32>For gifts bought from other users, the amount of currency paid for the gift
owned_gift_id: Option<OwnedGiftId>Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
transfer_star_count: Option<u32>Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
next_transfer_date: Option<DateTime<Utc>>Point in time when the gift can be transferred. If it is in the past, then the gift can be transferred now
text: Option<String>Text of the message that was used to send the gift.
entities: Option<Vec<MessageEntity>>Special entities that appear in the gift text.
is_private: Option<bool>true, if the gift is private.
Trait Implementations§
Source§impl Clone for UniqueGiftInfo
impl Clone for UniqueGiftInfo
Source§fn clone(&self) -> UniqueGiftInfo
fn clone(&self) -> UniqueGiftInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<UniqueGiftInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UniqueGiftInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for UniqueGiftInfo
Source§impl Hash for UniqueGiftInfo
impl Hash for UniqueGiftInfo
Source§impl PartialEq for UniqueGiftInfo
impl PartialEq for UniqueGiftInfo
Source§impl Serialize for UniqueGiftInfo
impl Serialize for UniqueGiftInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for UniqueGiftInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more