aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 503febd..5dadd1c 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -25,6 +25,7 @@ pub struct NodeID(pub [u8; 32]);
#[derive(Debug, Clone, Deserialize, Serialize, Default, Encode, Decode)]
pub struct Node {
pub slug: String,
+ #[serde(default)]
pub parents: Vec<NodeID>,
pub kind: Option<NodeKind>,
pub poster: Option<Asset>,
@@ -36,9 +37,12 @@ pub struct Node {
pub release_date: Option<i64>, // in unix millis
pub index: Option<usize>,
pub media: Option<MediaInfo>,
+ #[serde(default)]
pub ratings: BTreeMap<Rating, f64>,
pub federated: Option<String>,
+ #[serde(default)]
pub people: BTreeMap<PeopleGroup, Vec<Appearance>>,
+ #[serde(default)]
pub external_ids: BTreeMap<String, String>,
}