summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/user.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/user.rs b/src/models/user.rs
index 4649890..8555ee2 100644
--- a/src/models/user.rs
+++ b/src/models/user.rs
@@ -7,14 +7,14 @@ use crate::services::crypto::PasswordHash;
#[derive(Debug, Clone)]
pub struct User {
- pub user_id: Uuid,
+ pub id: Uuid,
pub username: Box<str>,
pub password: PasswordHash,
}
impl PartialEq for User {
fn eq(&self, other: &Self) -> bool {
- self.user_id == other.user_id
+ self.id == other.id
}
}
@@ -22,7 +22,7 @@ impl Eq for User {}
impl Hash for User {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
- state.write_u128(self.user_id.as_u128())
+ state.write_u128(self.id.as_u128())
}
}