get dates for frontend
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user