diff --git a/Cargo.toml b/Cargo.toml index 47d2bdc..4cda362 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ edition = "2024" [dependencies] chrono = { version = "0.4.45", features = ["serde"] } serde = { version = "1.0.229", features = ["derive"] } +serde_json = "1.0.154" diff --git a/src/user.rs b/src/user.rs index 504401f..202002e 100644 --- a/src/user.rs +++ b/src/user.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +use serde_json::Value; +use std::collections::HashMap; use crate::StdType; @@ -17,7 +19,7 @@ pub struct User { pub user_type_text: String, pub study_year: u8, pub enabled_modules: Vec, - //TODO: user SettingModules + pub setting_modules: HashMap, pub full_user_name: String, pub students: Vec, } diff --git a/tracker.md b/tracker.md index 8fdecf8..709fd70 100644 --- a/tracker.md +++ b/tracker.md @@ -3,7 +3,7 @@ - [x] Attachment - [ ] Classbook - [x] Events -- [ ] GDPR +- [x] GDPR - [x] Homework - [ ] komens - [ ] lesson @@ -15,6 +15,6 @@ - [x] themes - [ ] timetable - [x] user -- [ ] user SettingModules +- [x] user SettingModules - [ ] web - [ ] what if \ No newline at end of file