feat: Fetch the artist members as part of the artist details query

This commit is contained in:
2026-01-06 10:10:28 -07:00
parent 5afee1998b
commit a012f6ecd5
3 changed files with 42 additions and 9 deletions
+10
View File
@@ -26,6 +26,7 @@ pub struct Artist {
pub overview: Option<String>,
pub artist_type: Option<String>,
pub disambiguation: Option<String>,
pub members: Option<Vec<Member>>,
pub path: String,
#[serde(deserialize_with = "super::from_i64")]
pub quality_profile_id: i64,
@@ -63,6 +64,15 @@ pub struct Ratings {
impl Eq for Ratings {}
#[derive(Derivative, Serialize, Deserialize, Debug, Default, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Member {
pub name: Option<String>,
pub instrument: Option<String>,
}
impl Eq for Member {}
#[derive(Derivative, Serialize, Deserialize, Debug, Default, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct ArtistStatistics {