get dates for frontend

This commit is contained in:
2024-01-31 13:17:09 +01:00
parent f79cbc36c4
commit 6ea404845a
3 changed files with 42 additions and 5 deletions
+11
View File
@@ -85,3 +85,14 @@ impl Nutzer {
!self.name.is_empty() && !self.email.is_empty() && !self.schueler.is_empty()
}
}
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct Date {
id: IdType,
name: String,
subtitle: String,
start_time: NaiveDateTime,
end_time: NaiveDateTime,
}
pub type Dates = Vec<Date>;