pub struct GiveawayWinners {
pub chat: Chat,
pub giveaway_message_id: MessageId,
pub winners_selection_date: DateTime<Utc>,
pub winner_count: u32,
pub winners: Vec<User>,
pub additional_chat_count: Option<u16>,
pub prize_star_count: Option<u32>,
pub premium_subscription_month_count: Option<u8>,
pub unclaimed_prize_count: Option<u32>,
pub only_new_members: bool,
pub was_refunded: bool,
pub prize_description: Option<String>,
}Expand description
This object represents a message about the completion of a giveaway with public winners.
Fields§
§chat: ChatThe chat that created the giveaway
giveaway_message_id: MessageIdIdentifier of the messsage with the giveaway in the chat
winners_selection_date: DateTime<Utc>Point in time (Unix timestamp) when winners of the giveaway were selected
winner_count: u32Total number of winners in the giveaway
winners: Vec<User>List of up to 100 winners of the giveaway
additional_chat_count: Option<u16>The number of other chats the user had to join in order to be eligible for the giveaway
prize_star_count: Option<u32>The number of Telegram Stars that were split between giveaway winners
The number of months the Telegram Premium subscription won from the giveaway will be active for
unclaimed_prize_count: Option<u32>Number of undistributed prizes
only_new_members: booltrue, if only users who had joined the chats after the giveaway
started were eligible to win
was_refunded: booltrue, if the giveaway was canceled because the payment for it was
refunded
prize_description: Option<String>Description of additional giveaway prize
Trait Implementations§
Source§impl Clone for GiveawayWinners
impl Clone for GiveawayWinners
Source§fn clone(&self) -> GiveawayWinners
fn clone(&self) -> GiveawayWinners
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 GiveawayWinners
impl Debug for GiveawayWinners
Source§impl<'de> Deserialize<'de> for GiveawayWinners
impl<'de> Deserialize<'de> for GiveawayWinners
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GiveawayWinners, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GiveawayWinners, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GiveawayWinners
impl PartialEq for GiveawayWinners
Source§impl Serialize for GiveawayWinners
impl Serialize for GiveawayWinners
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 GiveawayWinners
Auto Trait Implementations§
impl Forget for GiveawayWinners
impl Freeze for GiveawayWinners
impl Move for GiveawayWinners
impl RefUnwindSafe for GiveawayWinners
impl Send for GiveawayWinners
impl Sync for GiveawayWinners
impl Unpin for GiveawayWinners
impl UnsafeUnpin for GiveawayWinnerswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<User>: UnsafeUnpin,
impl UnwindSafe for GiveawayWinners
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Erasable for T
impl<T> Erasable for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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