* Add courses names

* Change i8 to usize
* Useless Vec for rooms
* Professor are now an option
This commit is contained in:
Mylloon 2022-08-14 11:19:52 +02:00
parent 818c8eb40f
commit db1a301258
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,19 +1,22 @@
#[derive(Debug)]
pub struct Course {
/// Course's name
pub name: String,
/// Professor's name
pub professor: String,
pub professor: Option<String>,
/// List of rooms where the course takes place
pub room: Vec<String>,
pub room: 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,
pub start: usize,
/// Number of time slots the course takes up in the timetable
pub size: i8,
pub size: usize,
}
#[derive(Debug)]
pub struct Day {