forked from Anri/cal8tor
17 lines
414 B
Rust
17 lines
414 B
Rust
|
pub struct Course {
|
||
|
/// Professor's name
|
||
|
pub professor: String,
|
||
|
|
||
|
/// List of rooms where the course takes place
|
||
|
pub room: Box<String>,
|
||
|
|
||
|
/// Time the course starts, as a number :
|
||
|
/// - 0 => first possible class of the day
|
||
|
/// - 1 => second possible class of the day
|
||
|
/// - etc.
|
||
|
pub start: i8,
|
||
|
|
||
|
/// Number of time slots the course takes up in the timetable
|
||
|
pub size: i8,
|
||
|
}
|