Enum rspotify_model::enums::types::DeviceType
source · pub enum DeviceType {
Show 14 variants
Computer,
Tablet,
Smartphone,
Smartwatch,
Speaker,
Tv,
Avr,
Stb,
AudioDongle,
GameConsole,
CastVideo,
CastAudio,
Automobile,
Unknown,
}
Expand description
Device Type: computer
, smartphone
, speaker
, TV
Variants§
Computer
Tablet
Smartphone
Smartwatch
Speaker
Tv
Though undocumented, it has been reported that the Web API returns both ‘Tv’ and ‘TV’ as the type.
Avr
Same as above, the Web API returns both ‘AVR’ and ‘Avr’ as the type.
Stb
Same as above, the Web API returns both ‘STB’ and ‘Stb’ as the type.
AudioDongle
GameConsole
CastVideo
CastAudio
Automobile
Unknown
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
source§impl<'de> Deserialize<'de> for DeviceType
impl<'de> Deserialize<'de> for DeviceType
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 DeviceType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
source§fn from(x: &'_derivative_strum DeviceType) -> &'static str
fn from(x: &'_derivative_strum DeviceType) -> &'static str
Converts to this type from the input type.
source§impl From<DeviceType> for &'static str
impl From<DeviceType> for &'static str
source§fn from(x: DeviceType) -> &'static str
fn from(x: DeviceType) -> &'static str
Converts to this type from the input type.
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeviceType
impl Serialize for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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