Add middleware

This commit is contained in:
Tobias Reisinger 2021-11-06 14:54:45 +01:00
parent 483fd60daa
commit e6278176e4
6 changed files with 65 additions and 13 deletions
src/db

View file

@ -15,7 +15,7 @@ use crate::types::EmgauwaUid;
pub struct Schedule {
#[serde(skip)]
pub id: i32,
#[serde(alias = "id")]
#[serde(rename(serialize = "id"))]
pub uid: EmgauwaUid,
pub name: String,
pub periods: Periods,