Return ArtistData from top_artists

This commit is contained in:
2024-11-04 00:29:53 -05:00
parent 35abbe19ee
commit 414489d1be
2 changed files with 13 additions and 2 deletions

View File

@ -1,8 +1,10 @@
use crate::components::dashboard_tile::DashboardTile;
use serde::{Serialize, Deserialize};
/// Holds information about an artist
///
/// Intended to be used in the front-end
#[derive(Serialize, Deserialize)]
pub struct ArtistData {
/// Artist id
pub id: i32,