use super::image::Image;
use super::page::CursorBasedPage;
use crate::senum::Type;
use serde_json::Value;
use std::collections::HashMap;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct SimplifiedArtist {
pub external_urls: HashMap<String, String>,
pub href: Option<String>,
pub id: Option<String>,
pub name: String,
#[serde(rename = "type")]
pub _type: Type,
pub uri: Option<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct FullArtist {
pub external_urls: HashMap<String, String>,
pub followers: HashMap<String, Option<Value>>,
pub genres: Vec<String>,
pub href: String,
pub id: String,
pub images: Vec<Image>,
pub name: String,
pub popularity: u32,
#[serde(rename = "type")]
pub _type: Type,
pub uri: String,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct FullArtists {
pub artists: Vec<FullArtist>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct CursorPageFullArtists {
pub artists: CursorBasedPage<FullArtist>,
}