Enum rspotify_model::enums::types::CurrentlyPlayingType
source · pub enum CurrentlyPlayingType {
Track,
Episode,
Advertisement,
Unknown,
}
Expand description
Currently playing type: track
, episode
, ad
, unknown
Variants§
Trait Implementations§
source§impl Clone for CurrentlyPlayingType
impl Clone for CurrentlyPlayingType
source§fn clone(&self) -> CurrentlyPlayingType
fn clone(&self) -> CurrentlyPlayingType
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 CurrentlyPlayingType
impl Debug for CurrentlyPlayingType
source§impl<'de> Deserialize<'de> for CurrentlyPlayingType
impl<'de> Deserialize<'de> for CurrentlyPlayingType
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 CurrentlyPlayingType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CurrentlyPlayingType> for &'static str
source§fn from(x: &'_derivative_strum CurrentlyPlayingType) -> &'static str
fn from(x: &'_derivative_strum CurrentlyPlayingType) -> &'static str
Converts to this type from the input type.
source§impl From<CurrentlyPlayingType> for &'static str
impl From<CurrentlyPlayingType> for &'static str
source§fn from(x: CurrentlyPlayingType) -> &'static str
fn from(x: CurrentlyPlayingType) -> &'static str
Converts to this type from the input type.
source§impl PartialEq for CurrentlyPlayingType
impl PartialEq for CurrentlyPlayingType
source§fn eq(&self, other: &CurrentlyPlayingType) -> bool
fn eq(&self, other: &CurrentlyPlayingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CurrentlyPlayingType
impl Serialize for CurrentlyPlayingType
impl Copy for CurrentlyPlayingType
impl Eq for CurrentlyPlayingType
impl StructuralPartialEq for CurrentlyPlayingType
Auto Trait Implementations§
impl Freeze for CurrentlyPlayingType
impl RefUnwindSafe for CurrentlyPlayingType
impl Send for CurrentlyPlayingType
impl Sync for CurrentlyPlayingType
impl Unpin for CurrentlyPlayingType
impl UnwindSafe for CurrentlyPlayingType
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