pub struct PremiumGiveawayInfoCompleted {
pub creation_date: i32,
pub actual_winners_selection_date: i32,
pub was_refunded: bool,
pub winner_count: i32,
pub activation_count: i32,
pub gift_code: String,
}Expand description
Describes a completed giveaway
Fields§
§creation_date: i32Point in time (Unix timestamp) when the giveaway was created
actual_winners_selection_date: i32Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
was_refunded: boolTrue, if the giveaway was canceled and was fully refunded
winner_count: i32Number of winners in the giveaway
activation_count: i32Number of winners, which activated their gift codes
gift_code: StringTelegram Premium gift code that was received by the current user; empty if the user isn’t a winner in the giveaway
Trait Implementations§
Source§impl Clone for PremiumGiveawayInfoCompleted
impl Clone for PremiumGiveawayInfoCompleted
Source§fn clone(&self) -> PremiumGiveawayInfoCompleted
fn clone(&self) -> PremiumGiveawayInfoCompleted
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 PremiumGiveawayInfoCompleted
impl Debug for PremiumGiveawayInfoCompleted
Source§impl Default for PremiumGiveawayInfoCompleted
impl Default for PremiumGiveawayInfoCompleted
Source§fn default() -> PremiumGiveawayInfoCompleted
fn default() -> PremiumGiveawayInfoCompleted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumGiveawayInfoCompleted
impl<'de> Deserialize<'de> for PremiumGiveawayInfoCompleted
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 PremiumGiveawayInfoCompleted
impl PartialEq for PremiumGiveawayInfoCompleted
Source§fn eq(&self, other: &PremiumGiveawayInfoCompleted) -> bool
fn eq(&self, other: &PremiumGiveawayInfoCompleted) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PremiumGiveawayInfoCompleted
Auto Trait Implementations§
impl Freeze for PremiumGiveawayInfoCompleted
impl RefUnwindSafe for PremiumGiveawayInfoCompleted
impl Send for PremiumGiveawayInfoCompleted
impl Sync for PremiumGiveawayInfoCompleted
impl Unpin for PremiumGiveawayInfoCompleted
impl UnwindSafe for PremiumGiveawayInfoCompleted
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