aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
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,
}
}
}