#[non_exhaustive]pub enum PremiumType {
None,
NitroClassic,
Nitro,
NitroBasic,
Unknown(u8),
}
Expand description
Type of premium tier for a User
.
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.
None
User doesn’t have premium.
NitroClassic
User has Nitro Classic.
Nitro
User has the standard Nitro.
NitroBasic
User has Nitro Basic.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
source§impl Clone for PremiumType
impl Clone for PremiumType
source§fn clone(&self) -> PremiumType
fn clone(&self) -> PremiumType
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 PremiumType
impl Debug for PremiumType
source§impl<'de> Deserialize<'de> for PremiumType
impl<'de> Deserialize<'de> for PremiumType
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<PremiumType> for u8
impl From<PremiumType> for u8
source§fn from(value: PremiumType) -> Self
fn from(value: PremiumType) -> Self
Converts to this type from the input type.
source§impl From<u8> for PremiumType
impl From<u8> for PremiumType
source§impl Hash for PremiumType
impl Hash for PremiumType
source§impl PartialEq for PremiumType
impl PartialEq for PremiumType
source§impl Serialize for PremiumType
impl Serialize for PremiumType
impl Copy for PremiumType
impl Eq for PremiumType
impl StructuralPartialEq for PremiumType
Auto Trait Implementations§
impl Freeze for PremiumType
impl RefUnwindSafe for PremiumType
impl Send for PremiumType
impl Sync for PremiumType
impl Unpin for PremiumType
impl UnwindSafe for PremiumType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)