updated user
This commit is contained in:
1 parent
8370e3d657
commit
2853ea7e84
1 file changed
+13
+13
@@ -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<String>,
|
||||
@@ -16,6 +17,8 @@ pub struct User {
|
||||
pub user_type_text: String,
|
||||
pub study_year: u8,
|
||||
pub enabled_modules: Vec<Module>, //TODO: user SettingModules
|
||||
pub full_user_name: String,
|
||||
pub students: Vec<Student>
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -24,3 +27,13 @@ pub struct Module {
|
||||
pub module: String,
|
||||
pub rights: Vec<String>,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct Student{
|
||||
full_name: String,
|
||||
class: Vec<StdType>,
|
||||
school_type: String,
|
||||
study_year: u8
|
||||
}
|
||||
Reference in new issue
Block a user