From 0972fa6eab8c9111311f082ba8abfdc6b4a40945 Mon Sep 17 00:00:00 2001 From: nil Date: Wed, 2 Oct 2024 17:48:56 +0200 Subject: commit changes --- src/structs.rs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/structs.rs (limited to 'src/structs.rs') 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, + album_cover: String, + + //artist variables + artist_id: i32, + artist_name: String, +} + +#[allow(dead_code)] +struct Album { + id: i32, + title: String, + genres: Vec, + cover: String, + songs: Vec, +} + +#[allow(dead_code)] +struct Artist { + id: i32, + name: String, + genres: Vec, + albums: Vec, +} + +// lepht anonym -- cgit v1.2.3