pub struct PushMessageContentPremiumGiveaway {
pub winner_count: i32,
pub month_count: i32,
pub is_pinned: bool,
}
Expand description
A message with a Telegram Premium giveaway
Fields§
§winner_count: i32
Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message
month_count: i32
Number of months the Telegram Premium subscription will be active after code activation; 0 for pinned message
is_pinned: bool
True, if the message is a pinned message with the specified content
Trait Implementations§
Source§impl Clone for PushMessageContentPremiumGiveaway
impl Clone for PushMessageContentPremiumGiveaway
Source§fn clone(&self) -> PushMessageContentPremiumGiveaway
fn clone(&self) -> PushMessageContentPremiumGiveaway
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 Default for PushMessageContentPremiumGiveaway
impl Default for PushMessageContentPremiumGiveaway
Source§fn default() -> PushMessageContentPremiumGiveaway
fn default() -> PushMessageContentPremiumGiveaway
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushMessageContentPremiumGiveaway
impl<'de> Deserialize<'de> for PushMessageContentPremiumGiveaway
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 PushMessageContentPremiumGiveaway
impl PartialEq for PushMessageContentPremiumGiveaway
Source§fn eq(&self, other: &PushMessageContentPremiumGiveaway) -> bool
fn eq(&self, other: &PushMessageContentPremiumGiveaway) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PushMessageContentPremiumGiveaway
Auto Trait Implementations§
impl Freeze for PushMessageContentPremiumGiveaway
impl RefUnwindSafe for PushMessageContentPremiumGiveaway
impl Send for PushMessageContentPremiumGiveaway
impl Sync for PushMessageContentPremiumGiveaway
impl Unpin for PushMessageContentPremiumGiveaway
impl UnwindSafe for PushMessageContentPremiumGiveaway
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