pub struct MessageGiveawayPrizeStars {
pub star_count: i64,
pub transaction_id: String,
pub boosted_chat_id: i64,
pub giveaway_message_id: i64,
pub is_unclaimed: bool,
pub sticker: Option<Sticker>,
}Expand description
A Telegram Stars were received by the current user from a giveaway
Fields§
§star_count: i64Number of Telegram Stars that were received
transaction_id: StringIdentifier of the transaction for Telegram Stars credit
boosted_chat_id: i64Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway
giveaway_message_id: i64Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message
is_unclaimed: boolTrue, if the corresponding winner wasn’t chosen and the Telegram Stars were received by the owner of the boosted chat
sticker: Option<Sticker>A sticker to be shown in the message; may be null if unknown
Trait Implementations§
Source§impl Clone for MessageGiveawayPrizeStars
impl Clone for MessageGiveawayPrizeStars
Source§fn clone(&self) -> MessageGiveawayPrizeStars
fn clone(&self) -> MessageGiveawayPrizeStars
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 MessageGiveawayPrizeStars
impl Debug for MessageGiveawayPrizeStars
Source§impl<'de> Deserialize<'de> for MessageGiveawayPrizeStars
impl<'de> Deserialize<'de> for MessageGiveawayPrizeStars
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 MessageGiveawayPrizeStars
impl PartialEq for MessageGiveawayPrizeStars
Source§fn eq(&self, other: &MessageGiveawayPrizeStars) -> bool
fn eq(&self, other: &MessageGiveawayPrizeStars) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageGiveawayPrizeStars
Auto Trait Implementations§
impl Freeze for MessageGiveawayPrizeStars
impl RefUnwindSafe for MessageGiveawayPrizeStars
impl Send for MessageGiveawayPrizeStars
impl Sync for MessageGiveawayPrizeStars
impl Unpin for MessageGiveawayPrizeStars
impl UnsafeUnpin for MessageGiveawayPrizeStars
impl UnwindSafe for MessageGiveawayPrizeStars
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