bsac_api 0.1.0

Api lib to retrive colege timetable from api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Serialize, Deserialize};
use super::WorkTypeEnum;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetWorksGroupDto {
    #[serde(rename = "lessonNumbers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lesson_numbers: Option<Vec<i64>>,
    #[serde(rename = "workType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub work_type: Option<WorkTypeEnum>,
}
impl std::fmt::Display for GetWorksGroupDto {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}