diff options
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r-- | common/src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index 5dadd1c..4d6123c 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -15,7 +15,10 @@ pub use chrono; use bincode::{Decode, Encode}; use serde::{Deserialize, Serialize}; -use std::{collections::BTreeMap, path::PathBuf}; +use std::{ + collections::{BTreeMap, BTreeSet}, + path::PathBuf, +}; #[derive( Clone, Copy, Debug, Serialize, Deserialize, Encode, Decode, PartialEq, Eq, PartialOrd, Ord, @@ -26,7 +29,7 @@ pub struct NodeID(pub [u8; 32]); pub struct Node { pub slug: String, #[serde(default)] - pub parents: Vec<NodeID>, + pub parents: BTreeSet<NodeID>, pub kind: Option<NodeKind>, pub poster: Option<Asset>, pub backdrop: Option<Asset>, @@ -99,6 +102,7 @@ pub enum NodeKind { #[default] Movie, Video, + Music, ShortFormVideo, Collection, Channel, |