canteenlib/dto/
canteen_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::jsonb::feedback::Feedback;
use crate::jsonb::schedule::Schedule;
use crate::jsonb::setting::Setting;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CanteenRequest {
    pub id: Option<Uuid>,
    pub org_id: Uuid,
    pub name: String,
    pub settings: Setting,
    pub schedule: Vec<Schedule>,
    pub room_id: Option<Uuid>,
    pub building_id: Option<Uuid>,
    pub floor_id: Option<Uuid>,
    pub feedbacks: Option<Vec<Feedback>>,
}