create tests for model/rower.rs, Closes #32

This commit is contained in:
2023-07-31 16:59:15 +02:00
parent 32e6148844
commit adb26f6b91
5 changed files with 82 additions and 12 deletions

View File

@ -27,6 +27,12 @@ pub struct User {
pub last_access: Option<chrono::NaiveDateTime>,
}
impl PartialEq for User {
fn eq(&self, other: &Self) -> bool {
self.id == other.id
}
}
#[derive(Debug)]
pub enum LoginError {
InvalidAuthenticationCombo,