aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-03 18:15:47 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-03 18:15:47 +0100
commitbf84be508aa415b45a51fc0fe007a0879f7bfab7 (patch)
tree6a98c9a534dbb5eed899d0f9ff6f6499dddfd0db /common/src
parent26d3a70b0be2809177076e155f987e18e2b2ceb2 (diff)
downloadjellything-bf84be508aa415b45a51fc0fe007a0879f7bfab7.tar
jellything-bf84be508aa415b45a51fc0fe007a0879f7bfab7.tar.bz2
jellything-bf84be508aa415b45a51fc0fe007a0879f7bfab7.tar.zst
nodepage in player and tags
Diffstat (limited to 'common/src')
-rw-r--r--common/src/lib.rs2
-rw-r--r--common/src/stream.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index ce333eb..7685027 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -50,6 +50,8 @@ pub struct Node {
pub ratings: BTreeMap<Rating, f64>,
pub federated: Option<String>,
#[serde(default)]
+ pub tags: BTreeSet<String>,
+ #[serde(default)]
pub people: BTreeMap<PeopleGroup, Vec<Appearance>>,
#[serde(default)]
pub external_ids: BTreeMap<String, String>,
diff --git a/common/src/stream.rs b/common/src/stream.rs
index 3e227e1..1c285b3 100644
--- a/common/src/stream.rs
+++ b/common/src/stream.rs
@@ -1,9 +1,9 @@
-use bincode::{Decode, Encode};
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2025 metamuffin <metamuffin.org>
*/
+use bincode::{Decode, Encode};
#[cfg(feature = "rocket")]
use rocket::{FromForm, FromFormField, UriDisplayQuery};
use serde::{Deserialize, Serialize};