schedulelib/dto/
slot_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct SlotRequest {
    pub id: Option<Uuid>,
    #[serde(rename = "number")]
    pub lnumber: i32,
    pub day_of_week: i32,
    pub schedule: Uuid,
    pub melody_start: Uuid,
    pub melody_end: Uuid,
    pub study_period: Uuid,
    pub organization: Uuid,
    #[serde(rename = "type")]
    pub stype: String,
    pub to_time: i32,
    pub from_time: i32,
}