From faa13839f898c60ff5618be6e916ad2e60958468 Mon Sep 17 00:00:00 2001 From: nil0j Date: Sat, 21 Sep 2024 10:17:23 +0200 Subject: init --- rust/src/main.rs | 5 +++++ rust/src/structs.rs | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 rust/src/main.rs create mode 100644 rust/src/structs.rs (limited to 'rust/src') diff --git a/rust/src/main.rs b/rust/src/main.rs new file mode 100644 index 0000000..486aa6f --- /dev/null +++ b/rust/src/main.rs @@ -0,0 +1,5 @@ +mod structs; + +fn main() { + println!("Hello, world!"); +} diff --git a/rust/src/structs.rs b/rust/src/structs.rs new file mode 100644 index 0000000..7535bb4 --- /dev/null +++ b/rust/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