added user

This commit is contained in:
vextrixes committed 2026-10-25 11:02:35 +01:00
1 parent 0ce3f9cd48
commit 62a2b64672
3 files changed
+31 -1

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
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<String>,
pub user_type: String,
pub user_type_text: String,
pub study_year: u8,
pub enabled_modules: Vec<Module>
//TODO: user SettingModules
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Module{
pub module: String,
pub rights: Vec<String>
}