userlib/jsonb/
additional.rs

1use postgres_types::{FromSql, ToSql};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, FromSql, ToSql)]
5#[serde(rename_all = "camelCase")]
6pub struct AdditionalForm {
7    //pub emergency_contacts: Option<Vec<EmergencyDetails>>,
8    pub special_circumstances: bool,
9    pub special_circumstances_description: Option<String>,
10    pub need_support: bool,
11    pub anything_may_help: bool,
12    pub specify_anything_may_help: Option<String>,
13    pub changes: bool,
14    pub communication: bool,
15    pub modification: bool,
16    pub support: bool,
17    pub social_support: bool,
18    pub other_adjustments: bool,
19    pub specify_other_adjustments: Option<String>,
20    pub autism: bool,
21    pub physical_disability: bool,
22    pub behaviour_disorder: bool,
23    pub vision_impairment: bool,
24    pub hearing_impairment: bool,
25    pub difficulties_in_learning: bool,
26    pub intellectual_disability: bool,
27    pub language_disorder: bool,
28    pub acquired_brain_injury: bool,
29    pub mental_health_disorder: bool,
30    pub other_has_any: bool,
31    pub specify_other_has_any: Option<String>,
32    pub documented_plan_to_support: bool,
33    pub specify_documented_plan_to_support: Option<String>,
34}