canteenlib/dto/
bundle_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::enums::bundle_type::BundleType;
use crate::jsonb::feedback::Feedback;
use crate::jsonb::picture::Picture;


#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct BundleRequest {
    pub id: Option<Uuid>,
    pub name: String,
    pub dishes: Vec<Uuid>,
    pub org_id: Uuid,
    pub pictures: Option<Vec<Picture>>,
    pub bundle_type: BundleType,
    pub individual_id: Option<Uuid>,
    pub feedbacks: Option<Vec<Feedback>>,
}