pub struct GiveawayCreated {
pub prize_star_count: Option<i64>,
}Expand description
This object represents a service message about the creation of a scheduled giveaway.
Fields§
§prize_star_count: Option<i64>Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
Implementations§
Source§impl GiveawayCreated
impl GiveawayCreated
pub fn noskip(self) -> NoSkipGiveawayCreated
Source§impl GiveawayCreated
impl GiveawayCreated
pub fn new() -> Self
Sourcepub fn get_prize_star_count<'a>(&'a self) -> Option<i64>
pub fn get_prize_star_count<'a>(&'a self) -> Option<i64>
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
Sourcepub fn set_prize_star_count<'a>(
&'a mut self,
prize_star_count: Option<i64>,
) -> &'a mut Self
pub fn set_prize_star_count<'a>( &'a mut self, prize_star_count: Option<i64>, ) -> &'a mut Self
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
Trait Implementations§
Source§impl Clone for GiveawayCreated
impl Clone for GiveawayCreated
Source§fn clone(&self) -> GiveawayCreated
fn clone(&self) -> GiveawayCreated
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 GiveawayCreated
impl Debug for GiveawayCreated
Source§impl Default for GiveawayCreated
impl Default for GiveawayCreated
Source§fn default() -> GiveawayCreated
fn default() -> GiveawayCreated
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiveawayCreated
impl<'de> Deserialize<'de> for GiveawayCreated
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 From<BoxWrapper<Box<GiveawayCreated>>> for GiveawayCreated
impl From<BoxWrapper<Box<GiveawayCreated>>> for GiveawayCreated
Source§fn from(t: BoxWrapper<Box<GiveawayCreated>>) -> Self
fn from(t: BoxWrapper<Box<GiveawayCreated>>) -> Self
Converts to this type from the input type.
Source§impl From<BoxWrapper<Unbox<GiveawayCreated>>> for GiveawayCreated
impl From<BoxWrapper<Unbox<GiveawayCreated>>> for GiveawayCreated
Source§fn from(t: BoxWrapper<Unbox<GiveawayCreated>>) -> Self
fn from(t: BoxWrapper<Unbox<GiveawayCreated>>) -> Self
Converts to this type from the input type.
Source§impl From<NoSkipGiveawayCreated> for GiveawayCreated
impl From<NoSkipGiveawayCreated> for GiveawayCreated
Source§fn from(t: NoSkipGiveawayCreated) -> Self
fn from(t: NoSkipGiveawayCreated) -> Self
Converts to this type from the input type.
Source§impl Hash for GiveawayCreated
impl Hash for GiveawayCreated
Source§impl Into<NoSkipGiveawayCreated> for GiveawayCreated
impl Into<NoSkipGiveawayCreated> for GiveawayCreated
Source§fn into(self) -> NoSkipGiveawayCreated
fn into(self) -> NoSkipGiveawayCreated
Converts this type into the (usually inferred) input type.
Source§impl Ord for GiveawayCreated
impl Ord for GiveawayCreated
Source§fn cmp(&self, other: &GiveawayCreated) -> Ordering
fn cmp(&self, other: &GiveawayCreated) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GiveawayCreated
impl PartialEq for GiveawayCreated
Source§impl PartialOrd for GiveawayCreated
impl PartialOrd for GiveawayCreated
Source§impl Serialize for GiveawayCreated
impl Serialize for GiveawayCreated
impl Eq for GiveawayCreated
impl StructuralPartialEq for GiveawayCreated
Auto Trait Implementations§
impl Freeze for GiveawayCreated
impl RefUnwindSafe for GiveawayCreated
impl Send for GiveawayCreated
impl Sync for GiveawayCreated
impl Unpin for GiveawayCreated
impl UnsafeUnpin for GiveawayCreated
impl UnwindSafe for GiveawayCreated
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.