pub struct StarGiveawayWinnerOption {
pub winner_count: i32,
pub won_star_count: i64,
pub is_default: bool,
}Expand description
Describes an option for the number of winners of a Telegram Star giveaway
Fields§
§winner_count: i32The number of users that will be chosen as winners
won_star_count: i64The number of Telegram Stars that will be won by the winners of the giveaway
is_default: boolTrue, if the option must be chosen by default
Trait Implementations§
Source§impl Clone for StarGiveawayWinnerOption
impl Clone for StarGiveawayWinnerOption
Source§fn clone(&self) -> StarGiveawayWinnerOption
fn clone(&self) -> StarGiveawayWinnerOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StarGiveawayWinnerOption
impl Debug for StarGiveawayWinnerOption
Source§impl Default for StarGiveawayWinnerOption
impl Default for StarGiveawayWinnerOption
Source§fn default() -> StarGiveawayWinnerOption
fn default() -> StarGiveawayWinnerOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarGiveawayWinnerOption
impl<'de> Deserialize<'de> for StarGiveawayWinnerOption
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 StarGiveawayWinnerOption
impl PartialEq for StarGiveawayWinnerOption
Source§fn eq(&self, other: &StarGiveawayWinnerOption) -> bool
fn eq(&self, other: &StarGiveawayWinnerOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StarGiveawayWinnerOption
impl Serialize for StarGiveawayWinnerOption
impl StructuralPartialEq for StarGiveawayWinnerOption
Auto Trait Implementations§
impl Freeze for StarGiveawayWinnerOption
impl RefUnwindSafe for StarGiveawayWinnerOption
impl Send for StarGiveawayWinnerOption
impl Sync for StarGiveawayWinnerOption
impl Unpin for StarGiveawayWinnerOption
impl UnsafeUnpin for StarGiveawayWinnerOption
impl UnwindSafe for StarGiveawayWinnerOption
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