/// All objects related to device
///[get a users available devices](https://developer.spotify.com/web-api/get-a-users-available-devices/)
use crate::senum::DeviceType;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Device {
pub id: String,
pub is_active: bool,
pub is_restricted: bool,
pub name: String,
#[serde(rename = "type")]
pub _type: DeviceType,
pub volume_percent: u32,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct DevicePayload {
pub devices: Vec<Device>,
}