From 6007918adcff0a52748f8c4fb4154e904bc2d08a Mon Sep 17 00:00:00 2001 From: alpaylan Date: Wed, 14 Apr 2021 02:35:03 +0300 Subject: finished user testing. --- src/schema.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index 5546d12..55e46c0 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -121,7 +121,7 @@ impl Block { } /// Simply a Student -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct User { pub user_id: MetuId, pub public_key: String, @@ -129,13 +129,13 @@ pub struct User { } /// The values will be hard coded so MetuId::new() can accept/reject values based on that -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct MetuId { id: String, } // TODO: this will arrive encrypted <13-04-21, yigit> // -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct AuthRequest { pub student_id: String, pub public_key: String, -- cgit v1.2.3-70-g09d2