aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'common/src')
-rw-r--r--common/src/config.rs1
-rw-r--r--common/src/lib.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/common/src/config.rs b/common/src/config.rs
index 682fdd7..4ff1477 100644
--- a/common/src/config.rs
+++ b/common/src/config.rs
@@ -23,7 +23,6 @@ pub struct GlobalConfig {
#[serde(default = "default::secrets_path")] pub secrets_path: PathBuf,
#[serde(default = "default::transcoding_profiles")] pub transcoding_profiles: Vec<EncodingProfile>,
#[serde(default = "default::max_in_memory_cache_size")] pub max_in_memory_cache_size: usize,
- #[serde(default)] pub use_in_memory_import_storage: bool,
#[serde(default)] pub admin_username: Option<String>,
#[serde(default = "default::login_expire")] pub login_expire: i64,
#[serde(default)] pub default_permission_set: PermissionSet,
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>,
}