Files
bakalari-types/src/user.rs
T

27 lines
698 B
Rust
Raw Normal View History

2026-10-25 11:02:35 +01:00
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>
}