From e5a6e8f44e1470ad712e14b9bc45cb7cb2f47f55 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 28 Jul 2024 22:40:52 -0400 Subject: [PATCH] Add like_dislike field to SongData --- src/songdata.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/songdata.rs b/src/songdata.rs index 0c1b670..61e263f 100644 --- a/src/songdata.rs +++ b/src/songdata.rs @@ -26,6 +26,8 @@ pub struct SongData { /// Path to song image, relative to the root of the web server. /// For example, `"/assets/images/Song.jpg"` pub image_path: String, + /// Whether the song is liked by the user + pub like_dislike: Option<(bool, bool)>, }