#[non_exhaustive]pub struct GiveawayCompleted {
pub winner_count: u32,
pub unclaimed_prize_count: Option<u32>,
pub giveaway_message: Option<Box<Message>>,
pub is_star_giveaway: Option<bool>,
}Expand description
Service message: a giveaway without public winners has completed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.winner_count: u32Number of winners in the giveaway.
unclaimed_prize_count: Option<u32>Number of undistributed prizes.
giveaway_message: Option<Box<Message>>The message with the giveaway that was completed.
Boxed because Message transitively contains this type, and an
unboxed cycle would make the struct infinitely sized.
is_star_giveaway: Option<bool>true if the giveaway is a Telegram Star giveaway.
Trait Implementations§
Source§impl Clone for GiveawayCompleted
impl Clone for GiveawayCompleted
Source§fn clone(&self) -> GiveawayCompleted
fn clone(&self) -> GiveawayCompleted
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GiveawayCompleted
impl Debug for GiveawayCompleted
Source§impl Default for GiveawayCompleted
impl Default for GiveawayCompleted
Source§fn default() -> GiveawayCompleted
fn default() -> GiveawayCompleted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiveawayCompleted
impl<'de> Deserialize<'de> for GiveawayCompleted
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 GiveawayCompleted
impl RefUnwindSafe for GiveawayCompleted
impl Send for GiveawayCompleted
impl Sync for GiveawayCompleted
impl Unpin for GiveawayCompleted
impl UnsafeUnpin for GiveawayCompleted
impl UnwindSafe for GiveawayCompleted
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