From db1a301258867e0688a0b1590fa2cdb51a9def99 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 14 Aug 2022 11:19:52 +0200 Subject: [PATCH] * Add courses names * Change i8 to usize * Useless Vec for rooms * Professor are now an option --- src/models.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/models.rs b/src/models.rs index ef7b6b2..78c5d31 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,19 +1,22 @@ #[derive(Debug)] pub struct Course { + /// Course's name + pub name: String, + /// Professor's name - pub professor: String, + pub professor: Option, /// List of rooms where the course takes place - pub room: Vec, + 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 {