Enum discord_flows::model::PremiumTier
source · pub enum PremiumTier {
Tier0,
Tier1,
Tier2,
Tier3,
Unknown,
}Expand description
The guild’s premium tier, depends on the amount of users boosting the guild currently
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl Clone for PremiumTier
impl Clone for PremiumTier
source§fn clone(&self) -> PremiumTier
fn clone(&self) -> PremiumTier
Returns a copy 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 PremiumTier
impl Debug for PremiumTier
source§impl Default for PremiumTier
impl Default for PremiumTier
source§fn default() -> PremiumTier
fn default() -> PremiumTier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PremiumTier
impl<'de> Deserialize<'de> for PremiumTier
source§fn deserialize<D>(
deserializer: D
) -> Result<PremiumTier, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<PremiumTier, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PremiumTier
impl Hash for PremiumTier
source§impl Ord for PremiumTier
impl Ord for PremiumTier
source§fn cmp(&self, other: &PremiumTier) -> Ordering
fn cmp(&self, other: &PremiumTier) -> 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<PremiumTier> for PremiumTier
impl PartialEq<PremiumTier> for PremiumTier
source§fn eq(&self, other: &PremiumTier) -> bool
fn eq(&self, other: &PremiumTier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PremiumTier> for PremiumTier
impl PartialOrd<PremiumTier> for PremiumTier
source§fn partial_cmp(&self, other: &PremiumTier) -> Option<Ordering>
fn partial_cmp(&self, other: &PremiumTier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for PremiumTier
impl Serialize for PremiumTier
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PremiumTier
impl Eq for PremiumTier
impl StructuralEq for PremiumTier
impl StructuralPartialEq for PremiumTier
Auto Trait Implementations§
impl RefUnwindSafe for PremiumTier
impl Send for PremiumTier
impl Sync for PremiumTier
impl Unpin for PremiumTier
impl UnwindSafe for PremiumTier
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