aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 427ec1a..57e3631 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -8,6 +8,24 @@ use std::{collections::BTreeMap, path::PathBuf};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct DirectoryInfo {
pub name: String,
+ pub banner: Option<PathBuf>,
+
+ #[serde(default)]
+ pub kind: DirectoryKind,
+}
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[serde(rename_all = "snake_case")]
+pub enum DirectoryKind {
+ Folder,
+ Series,
+ Show,
+ Season,
+}
+impl Default for DirectoryKind {
+ fn default() -> Self {
+ Self::Folder
+ }
}
#[derive(Debug, Clone, Deserialize, Serialize)]