canteenlib/jsonb/
menu_bundle.rs

1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct MenuBundle {
    pub id : Uuid,
    pub bundle_id : Uuid,
    pub price : f32,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub comment : Option<String>,
    pub discount : f32,
}