discogs_api/data_types/
artist.rs

1use super::Image;
2use serde::Deserialize;
3
4#[derive(Debug, Clone, Deserialize)]
5pub struct Member {
6    pub id: isize,
7    pub name: String,
8    pub resource_url: String,
9    pub active: bool,
10    /// None if not authenticated
11    pub thumbnail_url: Option<String>,
12}
13
14#[derive(Debug, Clone, Deserialize)]
15pub struct Artist {
16    pub name: String,
17    pub id: isize,
18    pub resource_url: String,
19    pub uri: String,
20    pub releases_url: String,
21    #[serde(default)]
22    pub images: Vec<Image>,
23    pub realname: Option<String>,
24    pub profile: String,
25    #[serde(default)]
26    pub urls: Vec<String>,
27    pub namevariations: Option<Vec<String>>,
28    pub members: Option<Vec<Member>>,
29    pub data_quality: String,
30}