diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index d9e443b..a4380c6 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,7 +1,7 @@ pub mod r#impl; use serde::{Deserialize, Serialize}; -use std::collections::BTreeMap; +use std::{collections::BTreeMap, path::PathBuf}; #[derive(Debug, Clone, Deserialize, Serialize)] pub struct DirectoryInfo { @@ -12,7 +12,8 @@ pub struct DirectoryInfo { pub struct ItemInfo { pub title: String, pub duration: f64, // in seconds - pub path: String, + pub path: PathBuf, + pub banner: Option<PathBuf>, pub tracks: BTreeMap<u64, SourceTrack>, } |