use serde::{Deserialize, Serialize}; use crate::StdType; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct User { #[serde(rename = "UserUID")] pub user_uid: String, pub campaign_category_code: String, pub class: StdType, pub full_name: String, pub school_organization_name: String, pub school_type: Option, pub user_type: String, pub user_type_text: String, pub study_year: u8, pub enabled_modules: Vec, //TODO: user SettingModules } #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct Module { pub module: String, pub rights: Vec, }