Struct aspotify::model::Device [−][src]
pub struct Device {
pub id: Option<String>,
pub is_active: bool,
pub is_private_session: bool,
pub is_restricted: bool,
pub name: String,
pub device_type: DeviceType,
pub volume_percent: Option<u32>,
}
Expand description
A device object.
Fields
id: Option<String>
The device id. It can be None
, and I don’t know why.
is_active: bool
Whether this device is the currently active device.
is_private_session: bool
Whether this device is currently in a private session.
is_restricted: bool
Whether controlling this device is restricted; if set to true, no Web API commands will be accepted by it.
name: String
The name of the device.
device_type: DeviceType
The type of the device.
volume_percent: Option<u32>
The current volume in percent. It can be None
, and I don’t know why.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more