diff options
Diffstat (limited to 'src/schema.rs')
| -rw-r--r-- | src/schema.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs index 81bfc1b..40c6329 100644 --- a/src/schema.rs +++ b/src/schema.rs | |||
| @@ -253,6 +253,12 @@ pub struct MetuId { | |||
| 253 | passwd: String, | 253 | passwd: String, |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | impl MetuId { | ||
| 257 | pub fn quick_equal(&self, other: &str) -> bool { | ||
| 258 | self.id == other | ||
| 259 | } | ||
| 260 | } | ||
| 261 | |||
| 256 | /// The plaintext of the initial user authentication request | 262 | /// The plaintext of the initial user authentication request |
| 257 | #[derive(Serialize, Deserialize, Debug, PartialEq)] | 263 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
| 258 | pub struct AuthRequest { | 264 | pub struct AuthRequest { |
