summaryrefslogtreecommitdiff
path: root/src/structs.rs
diff options
context:
space:
mode:
authornil <nil@tfwhyno.gf>2024-10-02 17:48:56 +0200
committernil <nil@tfwhyno.gf>2024-10-02 17:48:56 +0200
commit0972fa6eab8c9111311f082ba8abfdc6b4a40945 (patch)
tree4eedbdc1a7cfdeee9d651c9871a9f26ab6da56d4 /src/structs.rs
parent012c2c03b29a987ca4eead023ded22e01aa7477b (diff)
commit changes
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