pub struct ChatBoostSourceGiveaway {
pub user_id: i64,
pub gift_code: String,
pub giveaway_message_id: i64,
pub is_unclaimed: bool,
}
Expand description
The chat created a Telegram Premium giveaway
Fields§
§user_id: i64
Identifier of a user that won in the giveaway; 0 if none
gift_code: String
The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise
giveaway_message_id: i64
Identifier of the corresponding giveaway message; can be an identifier of a deleted message
is_unclaimed: bool
True, if the winner for the corresponding Telegram Premium subscription wasn’t chosen, because there were not enough participants
Trait Implementations§
Source§impl Clone for ChatBoostSourceGiveaway
impl Clone for ChatBoostSourceGiveaway
Source§fn clone(&self) -> ChatBoostSourceGiveaway
fn clone(&self) -> ChatBoostSourceGiveaway
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 ChatBoostSourceGiveaway
impl Debug for ChatBoostSourceGiveaway
Source§impl Default for ChatBoostSourceGiveaway
impl Default for ChatBoostSourceGiveaway
Source§fn default() -> ChatBoostSourceGiveaway
fn default() -> ChatBoostSourceGiveaway
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
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 ChatBoostSourceGiveaway
impl PartialEq for ChatBoostSourceGiveaway
Source§impl Serialize for ChatBoostSourceGiveaway
impl Serialize for ChatBoostSourceGiveaway
impl StructuralPartialEq for ChatBoostSourceGiveaway
Auto Trait Implementations§
impl Freeze for ChatBoostSourceGiveaway
impl RefUnwindSafe for ChatBoostSourceGiveaway
impl Send for ChatBoostSourceGiveaway
impl Sync for ChatBoostSourceGiveaway
impl Unpin for ChatBoostSourceGiveaway
impl UnwindSafe for ChatBoostSourceGiveaway
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