diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-11 12:43:16 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-11 12:43:16 +0200 |
commit | 29eb56f03ac122bda1b12909592e76d34d79b542 (patch) | |
tree | 1c7d5b87182942e3dc272c207bb976e779d4b7c3 /common/src | |
parent | bb6ef9611b51c716635297da913008f787293856 (diff) | |
download | jellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar jellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar.bz2 jellything-29eb56f03ac122bda1b12909592e76d34d79b542.tar.zst |
node user ratingings
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/user.rs | 3 |
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, } } } |