aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-11 12:43:16 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-11 12:43:16 +0200
commit29eb56f03ac122bda1b12909592e76d34d79b542 (patch)
tree1c7d5b87182942e3dc272c207bb976e779d4b7c3 /common/src
parentbb6ef9611b51c716635297da913008f787293856 (diff)
downloadjellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar
jellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar.bz2
jellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar.zst
node user ratingings
Diffstat (limited to 'common/src')
-rw-r--r--common/src/user.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/src/user.rs b/common/src/user.rs
index 1a527b9..7ea8f1f 100644
--- a/common/src/user.rs
+++ b/common/src/user.rs
@@ -29,6 +29,8 @@ pub struct User {
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)]
pub struct NodeUserData {
pub watched: WatchedState,
+ #[serde(default)]
+ pub rating: i32,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Encode, Decode)]
@@ -153,6 +155,7 @@ impl Default for NodeUserData {
fn default() -> Self {
Self {
watched: WatchedState::None,
+ rating: 0,
}
}
}