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
use serde::{Serialize, Deserialize};
use super::GetWorksGroupDto;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct GetKtpWorksDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub calculated: Option<bool>,
    #[serde(rename = "worksList")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub works_list: Option<Vec<GetWorksGroupDto>>,
}
impl std::fmt::Display for GetKtpWorksDto {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}