Added artist bio and art stuff
This commit is contained in:
@@ -50,6 +50,24 @@ pub struct RecordingDetails {
|
||||
pub secondary_artists: Vec<(String, String)>,
|
||||
}
|
||||
|
||||
/// Detailed artist info from a direct MBID lookup.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ArtistInfo {
|
||||
pub name: String,
|
||||
pub disambiguation: Option<String>,
|
||||
pub country: Option<String>,
|
||||
pub artist_type: Option<String>,
|
||||
pub begin_year: Option<String>,
|
||||
pub urls: Vec<ArtistUrl>,
|
||||
}
|
||||
|
||||
/// An external URL linked to an artist on MusicBrainz.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ArtistUrl {
|
||||
pub url: String,
|
||||
pub link_type: String,
|
||||
}
|
||||
|
||||
/// An artist match from a search query.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ArtistSearchResult {
|
||||
|
||||
Reference in New Issue
Block a user