diff --git a/src/coverart.rs b/src/coverart.rs index 06ac2fc..a74e6d2 100644 --- a/src/coverart.rs +++ b/src/coverart.rs @@ -7,6 +7,9 @@ pub struct CoverArt { pub id: uuid::Uuid, pub title: String, #[serde(skip)] + pub directory: String, + pub filename: String, + #[serde(skip)] pub path: String, #[serde(skip)] pub data: Vec, @@ -23,6 +26,7 @@ pub mod init { path: path.clone(), data: Vec::new(), song_id: uuid::Uuid::nil(), + ..Default::default() } } }