canteenlib/jsonb/
remedie.rs

1
2
3
4
5
6
7
8
9
10
11
12
13

use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Remedie {
    pub id : Uuid,
    pub medication : Uuid,
    pub amount : String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub comment : Option<String>,
}