diff options
| author | alpaylan | 2021-04-14 02:35:03 +0300 |
|---|---|---|
| committer | alpaylan | 2021-04-14 02:35:03 +0300 |
| commit | c9209d1c311e1527c0531c995c6ebae7cc5accca (patch) | |
| tree | a9ae1b05b0ac39ea8e75caa59de23f0ccc95b1fb /src | |
| parent | d9d11f67338c324d9b9e77d8869b3789180cad12 (diff) | |
| download | gradecoin-c9209d1c311e1527c0531c995c6ebae7cc5accca.tar.gz gradecoin-c9209d1c311e1527c0531c995c6ebae7cc5accca.tar.bz2 gradecoin-c9209d1c311e1527c0531c995c6ebae7cc5accca.zip | |
finished user testing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/schema.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 { | |||
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | /// Simply a Student | 123 | /// Simply a Student |
| 124 | #[derive(Serialize, Deserialize, Debug)] | 124 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
| 125 | pub struct User { | 125 | pub struct User { |
| 126 | pub user_id: MetuId, | 126 | pub user_id: MetuId, |
| 127 | pub public_key: String, | 127 | pub public_key: String, |
| @@ -129,13 +129,13 @@ pub struct User { | |||
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | /// The values will be hard coded so MetuId::new() can accept/reject values based on that | 131 | /// The values will be hard coded so MetuId::new() can accept/reject values based on that |
| 132 | #[derive(Serialize, Deserialize, Debug)] | 132 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
| 133 | pub struct MetuId { | 133 | pub struct MetuId { |
| 134 | id: String, | 134 | id: String, |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | // TODO: this will arrive encrypted <13-04-21, yigit> // | 137 | // TODO: this will arrive encrypted <13-04-21, yigit> // |
| 138 | #[derive(Serialize, Deserialize, Debug)] | 138 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
| 139 | pub struct AuthRequest { | 139 | pub struct AuthRequest { |
| 140 | pub student_id: String, | 140 | pub student_id: String, |
| 141 | pub public_key: String, | 141 | pub public_key: String, |
