pub struct PushMessageContentGiveaway {
pub winner_count: i32,
pub prize: Option<GiveawayPrize>,
pub is_pinned: bool,
}Expand description
A message with a giveaway
Fields§
§winner_count: i32Number of users which will receive giveaway prizes; 0 for pinned message
prize: Option<GiveawayPrize>Prize of the giveaway; may be null for pinned message
is_pinned: boolTrue, if the message is a pinned message with the specified content
Trait Implementations§
Source§impl Clone for PushMessageContentGiveaway
impl Clone for PushMessageContentGiveaway
Source§fn clone(&self) -> PushMessageContentGiveaway
fn clone(&self) -> PushMessageContentGiveaway
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 PushMessageContentGiveaway
impl Debug for PushMessageContentGiveaway
Source§impl Default for PushMessageContentGiveaway
impl Default for PushMessageContentGiveaway
Source§fn default() -> PushMessageContentGiveaway
fn default() -> PushMessageContentGiveaway
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushMessageContentGiveaway
impl<'de> Deserialize<'de> for PushMessageContentGiveaway
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
impl StructuralPartialEq for PushMessageContentGiveaway
Auto Trait Implementations§
impl Freeze for PushMessageContentGiveaway
impl RefUnwindSafe for PushMessageContentGiveaway
impl Send for PushMessageContentGiveaway
impl Sync for PushMessageContentGiveaway
impl Unpin for PushMessageContentGiveaway
impl UnsafeUnpin for PushMessageContentGiveaway
impl UnwindSafe for PushMessageContentGiveaway
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