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