summaryrefslogtreecommitdiff
path: root/src/routes.rs
blob: d9845051d8c20a2959bb4551f62e8269a369e529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use serde::Serialize;

pub mod song;
pub mod album;
pub mod artist;

#[derive(Serialize)]
pub struct Song {
    name: Option<String>,
    id: Option<i32>,
    lyrics: Option<String>,
    album_name: Option<String>,
    album_id: Option<i32>,
    artist_name: Option<String>,
    artist_id: Option<i32>,
}

#[derive(Serialize)]
pub struct Album {
    name: Option<String>,
    id: Option<i32>,
    artist_name: Option<String>,
    artist_id: Option<i32>,
}

#[derive(Serialize)]
pub struct Artist {
    name: Option<String>,
    id: Option<i32>,
}