use serde::Deserialize;
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct ResponseSchoolNotices {
#[serde(rename = "SchoolNotices")]
pub school_notices: Vec<SchoolNotice>,
pub resources: Option<SchoolNoticesResources>,
pub url: String,
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct SchoolNotice {
pub id: String,
pub start_date: String,
pub end_date: String,
pub subject: String,
pub content: String,
pub added_by: SchoolNoticeAddedBy,
pub creation_date: String,
pub was_read: bool,
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct SchoolNoticeAddedBy {
pub id: String,
pub url: String,
}
#[derive(Debug, Deserialize)]
pub struct SchoolNoticesResources {
#[serde(rename = "..")]
pub empty: SchoolNoticesUrl,
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct SchoolNoticesUrl {
pub url: String,
}