From 2853ea7e848e98d2bfd4bc88010f98c10824e0a4 Mon Sep 17 00:00:00 2001 From: vextrixes <113197359+vextrixes@users.noreply.github.com> Date: Sun, 25 Oct 2026 12:14:28 +0100 Subject: [PATCH] updated user --- src/user.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/user.rs b/src/user.rs index 3d14a5a..e3727b3 100644 --- a/src/user.rs +++ b/src/user.rs @@ -9,6 +9,7 @@ pub struct User { pub user_uid: String, pub campaign_category_code: String, pub class: StdType, + // TeacherClasses: Option TODO pub full_name: String, pub school_organization_name: String, pub school_type: Option, @@ -16,6 +17,8 @@ pub struct User { pub user_type_text: String, pub study_year: u8, pub enabled_modules: Vec, //TODO: user SettingModules + pub full_user_name: String, + pub students: Vec } #[derive(Debug, Clone, Serialize, Deserialize)] @@ -24,3 +27,13 @@ pub struct Module { pub module: String, pub rights: Vec, } + + +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "PascalCase")] +pub struct Student{ + full_name: String, + class: Vec, + school_type: String, + study_year: u8 +} \ No newline at end of file