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
31
32
33
34
35
|
#[allow(dead_code)]
struct Song {
//song variables
id: i32,
title: String,
lyrics: String,
//album variables
album_id: i32,
genres: Vec<String>,
album_cover: String,
//artist variables
artist_id: i32,
artist_name: String,
}
#[allow(dead_code)]
struct Album {
id: i32,
title: String,
genres: Vec<String>,
cover: String,
songs: Vec<i32>,
}
#[allow(dead_code)]
struct Artist {
id: i32,
name: String,
genres: Vec<String>,
albums: Vec<i32>,
}
// lepht anonym
|