pub struct AvailableGift {
pub gift: Gift,
pub resale_count: i32,
pub min_resale_star_count: i64,
pub title: String,
}Expand description
Describes a gift that is available for purchase
Fields§
§gift: GiftThe gift
resale_count: i32Number of gifts that are available for resale
min_resale_star_count: i64The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts
title: StringThe title of the upgraded gift; empty if the gift isn’t available for resale
Trait Implementations§
Source§impl Clone for AvailableGift
impl Clone for AvailableGift
Source§fn clone(&self) -> AvailableGift
fn clone(&self) -> AvailableGift
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 AvailableGift
impl Debug for AvailableGift
Source§impl<'de> Deserialize<'de> for AvailableGift
impl<'de> Deserialize<'de> for AvailableGift
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 AvailableGift
impl PartialEq for AvailableGift
Source§impl Serialize for AvailableGift
impl Serialize for AvailableGift
impl StructuralPartialEq for AvailableGift
Auto Trait Implementations§
impl Freeze for AvailableGift
impl RefUnwindSafe for AvailableGift
impl Send for AvailableGift
impl Sync for AvailableGift
impl Unpin for AvailableGift
impl UnsafeUnpin for AvailableGift
impl UnwindSafe for AvailableGift
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