Compare commits

..
Author SHA1 Message Date
phoenix d907bf99a2 Added test
Release Tagging / release (pull_request) Successful in 37s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Rustfmt (pull_request) Failing after 33s
Rust Build / Test Suite (pull_request) Successful in 37s
Rust Build / build (pull_request) Successful in 29s
Rust Build / Clippy (pull_request) Successful in 38s
2026-05-29 22:42:49 -04:00
3 changed files with 1 additions and 23 deletions
-1
View File
@@ -1,5 +1,4 @@
pub mod config;
pub mod contact;
pub mod message;
pub mod token;
pub mod user;
-8
View File
@@ -1,8 +0,0 @@
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Message {
pub id: uuid::Uuid,
pub content: String,
pub user_id: uuid::Uuid,
}
+1 -14
View File
@@ -28,14 +28,6 @@ pub struct ServiceUser {
pub last_login: Option<time::OffsetDateTime>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Organization {
pub id: uuid::Uuid,
pub name: String,
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserLoginHistory {
pub id: uuid::Uuid,
@@ -59,9 +51,7 @@ pub struct UserProfile {
pub username: String,
pub firstname: String,
pub lastname: String,
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
#[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>,
}
@@ -94,9 +84,6 @@ mod tests {
};
let profile = super::init_user_profile(&usr);
assert_eq!(
usr.phone_number, profile.phone_number,
"Phone numbers are not equal"
);
assert_eq!(usr.phone_number, profile.phone_number, "Phone numbers are not equal");
}
}