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