osars 0.3.0

Rust client library for OpenScheduleAPI - educational schedule management system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{Call, Campus};
use serde::{Deserialize, Serialize};

/// Represents an educational institution.
///
/// Contains information about a college including its campuses and call schedule.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct College {
    /// Unique identifier for the college
    #[serde(rename = "collegeId")]
    pub college_id: u32,
    /// Name of the college
    pub name: String,
    /// Schedule of calls (lesson periods) for the college
    pub calls: Vec<Call>,
    /// List of campuses belonging to this college
    pub campuses: Vec<Campus>,
}