userlib/jsonb/
history.rs

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

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct HistoryForm {
    pub risk: bool,
    pub description_risk: Option<String>,
    pub contact_details_risk: Option<String>,
    pub violent_behaviour: bool,
    pub details_violent_behaviour: Option<String>,
    pub student_expelled: bool,
    pub violence: Option<bool>,
    pub possession_weapon: Option<bool>,
    pub threats: Option<bool>,
    pub illegal_drugs: Option<bool>,
    pub other_incidents: bool,
    pub other_incidents_desc: Option<String>,
}