pub struct MessageGiveawayCompleted {
pub giveaway_message_id: i64,
pub winner_count: i32,
pub is_star_giveaway: bool,
pub unclaimed_prize_count: i32,
}Expand description
A giveaway without public winners has been completed for the chat
Fields§
§giveaway_message_id: i64Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message
winner_count: i32Number of winners in the giveaway
is_star_giveaway: boolTrue, if the giveaway is a Telegram Star giveaway
unclaimed_prize_count: i32Number of undistributed prizes; for Telegram Premium giveaways only
Trait Implementations§
Source§impl Clone for MessageGiveawayCompleted
impl Clone for MessageGiveawayCompleted
Source§fn clone(&self) -> MessageGiveawayCompleted
fn clone(&self) -> MessageGiveawayCompleted
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 MessageGiveawayCompleted
impl Debug for MessageGiveawayCompleted
Source§impl Default for MessageGiveawayCompleted
impl Default for MessageGiveawayCompleted
Source§fn default() -> MessageGiveawayCompleted
fn default() -> MessageGiveawayCompleted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageGiveawayCompleted
impl<'de> Deserialize<'de> for MessageGiveawayCompleted
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 MessageGiveawayCompleted
impl PartialEq for MessageGiveawayCompleted
Source§impl Serialize for MessageGiveawayCompleted
impl Serialize for MessageGiveawayCompleted
impl StructuralPartialEq for MessageGiveawayCompleted
Auto Trait Implementations§
impl Freeze for MessageGiveawayCompleted
impl RefUnwindSafe for MessageGiveawayCompleted
impl Send for MessageGiveawayCompleted
impl Sync for MessageGiveawayCompleted
impl Unpin for MessageGiveawayCompleted
impl UnsafeUnpin for MessageGiveawayCompleted
impl UnwindSafe for MessageGiveawayCompleted
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