summaryrefslogtreecommitdiff
path: root/src/structs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/structs.rs')
-rw-r--r--src/structs.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/structs.rs b/src/structs.rs
new file mode 100644
index 0000000..7535bb4
--- /dev/null
+++ b/src/structs.rs
@@ -0,0 +1,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