pub enum PremiumGiveawayParticipantStatus {
Eligible,
Participating,
AlreadyWasMember(PremiumGiveawayParticipantStatusAlreadyWasMember),
Administrator(PremiumGiveawayParticipantStatusAdministrator),
DisallowedCountry(PremiumGiveawayParticipantStatusDisallowedCountry),
}Variants§
Eligible
The user is eligible for the giveaway
Participating
The user participates in the giveaway
AlreadyWasMember(PremiumGiveawayParticipantStatusAlreadyWasMember)
The user can’t participate in the giveaway, because they have already been member of the chat
Administrator(PremiumGiveawayParticipantStatusAdministrator)
The user can’t participate in the giveaway, because they are an administrator in one of the chats that created the giveaway
DisallowedCountry(PremiumGiveawayParticipantStatusDisallowedCountry)
The user can’t participate in the giveaway, because they phone number is from a disallowed country
Trait Implementations§
Source§impl Clone for PremiumGiveawayParticipantStatus
impl Clone for PremiumGiveawayParticipantStatus
Source§fn clone(&self) -> PremiumGiveawayParticipantStatus
fn clone(&self) -> PremiumGiveawayParticipantStatus
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<'de> Deserialize<'de> for PremiumGiveawayParticipantStatus
impl<'de> Deserialize<'de> for PremiumGiveawayParticipantStatus
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 PremiumGiveawayParticipantStatus
impl PartialEq for PremiumGiveawayParticipantStatus
Source§fn eq(&self, other: &PremiumGiveawayParticipantStatus) -> bool
fn eq(&self, other: &PremiumGiveawayParticipantStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PremiumGiveawayParticipantStatus
Auto Trait Implementations§
impl Freeze for PremiumGiveawayParticipantStatus
impl RefUnwindSafe for PremiumGiveawayParticipantStatus
impl Send for PremiumGiveawayParticipantStatus
impl Sync for PremiumGiveawayParticipantStatus
impl Unpin for PremiumGiveawayParticipantStatus
impl UnwindSafe for PremiumGiveawayParticipantStatus
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