Added function to make coverart init easier (#24)

Reviewed-on: #24
Co-authored-by: phoenix <kundeng94@gmail.com>
Co-committed-by: phoenix <kundeng94@gmail.com>
This commit is contained in:
phoenix
2025-04-04 02:21:31 +00:00
committed by phoenix
parent 61ad88a258
commit 8fbd92620e
5 changed files with 41 additions and 20 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ pub struct AccessLevel {
impl Default for AccessLevel {
fn default() -> Self {
AccessLevel {
id: uuid::Uuid::new_v4(),
id: uuid::Uuid::nil(),
level: String::new(),
song_id: uuid::Uuid::new_v4(),
}
@@ -21,7 +21,7 @@ impl Default for AccessLevel {
pub fn default_level() -> AccessLevel {
AccessLevel {
id: uuid::Uuid::new_v4(),
id: uuid::Uuid::nil(),
level: String::from("Public"),
song_id: uuid::Uuid::new_v4(),
}