Enum rspotify_model::enums::types::SubscriptionLevel
source · pub enum SubscriptionLevel {
Premium,
Free,
}
Expand description
The user’s Spotify subscription level: premium
, free
(The subscription level “open” can be considered the same as “free”.)
Variants§
Trait Implementations§
source§impl Clone for SubscriptionLevel
impl Clone for SubscriptionLevel
source§fn clone(&self) -> SubscriptionLevel
fn clone(&self) -> SubscriptionLevel
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 SubscriptionLevel
impl Debug for SubscriptionLevel
source§impl<'de> Deserialize<'de> for SubscriptionLevel
impl<'de> Deserialize<'de> for SubscriptionLevel
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<'_derivative_strum> From<&'_derivative_strum SubscriptionLevel> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum SubscriptionLevel> for &'static str
source§fn from(x: &'_derivative_strum SubscriptionLevel) -> &'static str
fn from(x: &'_derivative_strum SubscriptionLevel) -> &'static str
Converts to this type from the input type.
source§impl From<SubscriptionLevel> for &'static str
impl From<SubscriptionLevel> for &'static str
source§fn from(x: SubscriptionLevel) -> &'static str
fn from(x: SubscriptionLevel) -> &'static str
Converts to this type from the input type.
source§impl PartialEq for SubscriptionLevel
impl PartialEq for SubscriptionLevel
source§fn eq(&self, other: &SubscriptionLevel) -> bool
fn eq(&self, other: &SubscriptionLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SubscriptionLevel
impl Serialize for SubscriptionLevel
impl Copy for SubscriptionLevel
impl Eq for SubscriptionLevel
impl StructuralPartialEq for SubscriptionLevel
Auto Trait Implementations§
impl Freeze for SubscriptionLevel
impl RefUnwindSafe for SubscriptionLevel
impl Send for SubscriptionLevel
impl Sync for SubscriptionLevel
impl Unpin for SubscriptionLevel
impl UnwindSafe for SubscriptionLevel
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