From 29eb56f03ac122bda1b12909592e76d34d79b542 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 11 Jun 2024 12:43:16 +0200 Subject: node user ratingings --- common/src/user.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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, } } } -- cgit v1.2.3-70-g09d2