pub struct OwnedGiftUnique {
pub gift: UniqueGift,
pub owned_gift_id: Option<String>,
pub sender_user: Option<User>,
pub send_date: i64,
pub is_saved: Option<bool>,
pub can_be_transferred: Option<bool>,
pub transfer_star_count: Option<i64>,
pub next_transfer_date: Option<i64>,
}Expand description
A unique gift owned by a user or chat.
Fields§
§gift: UniqueGiftInformation about the unique gift.
owned_gift_id: Option<String>Unique identifier of the gift for the bot; for business account gifts only.
sender_user: Option<User>Sender of the gift if it is a known user.
send_date: i64Date the gift was sent, as a Unix timestamp.
is_saved: Option<bool>true if the gift is displayed on the account’s profile page.
can_be_transferred: Option<bool>true if the gift can be transferred to another owner.
transfer_star_count: Option<i64>Stars required to transfer the gift.
next_transfer_date: Option<i64>Unix timestamp when the gift can next be transferred.
Trait Implementations§
Source§impl Clone for OwnedGiftUnique
impl Clone for OwnedGiftUnique
Source§fn clone(&self) -> OwnedGiftUnique
fn clone(&self) -> OwnedGiftUnique
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 OwnedGiftUnique
impl Debug for OwnedGiftUnique
Source§impl<'de> Deserialize<'de> for OwnedGiftUnique
impl<'de> Deserialize<'de> for OwnedGiftUnique
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 OwnedGiftUnique
impl RefUnwindSafe for OwnedGiftUnique
impl Send for OwnedGiftUnique
impl Sync for OwnedGiftUnique
impl Unpin for OwnedGiftUnique
impl UnsafeUnpin for OwnedGiftUnique
impl UnwindSafe for OwnedGiftUnique
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