pub struct MessageGiveaway {
pub parameters: GiveawayParameters,
pub winner_count: i32,
pub prize: GiveawayPrize,
pub sticker: Option<Sticker>,
}Expand description
A giveaway
Fields§
§parameters: GiveawayParametersGiveaway parameters
winner_count: i32Number of users which will receive Telegram Premium subscription gift codes
prize: GiveawayPrizePrize of the giveaway
sticker: Option<Sticker>A sticker to be shown in the message; may be null if unknown
Trait Implementations§
Source§impl Clone for MessageGiveaway
impl Clone for MessageGiveaway
Source§fn clone(&self) -> MessageGiveaway
fn clone(&self) -> MessageGiveaway
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 MessageGiveaway
impl Debug for MessageGiveaway
Source§impl<'de> Deserialize<'de> for MessageGiveaway
impl<'de> Deserialize<'de> for MessageGiveaway
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 MessageGiveaway
impl PartialEq for MessageGiveaway
Source§impl Serialize for MessageGiveaway
impl Serialize for MessageGiveaway
impl StructuralPartialEq for MessageGiveaway
Auto Trait Implementations§
impl Freeze for MessageGiveaway
impl RefUnwindSafe for MessageGiveaway
impl Send for MessageGiveaway
impl Sync for MessageGiveaway
impl Unpin for MessageGiveaway
impl UnsafeUnpin for MessageGiveaway
impl UnwindSafe for MessageGiveaway
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