diff --git a/src/models.rs b/src/models.rs index d9a00bb..ef7b6b2 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,9 +1,10 @@ +#[derive(Debug)] pub struct Course { /// Professor's name pub professor: String, /// List of rooms where the course takes place - pub room: Box, + pub room: Vec, /// Time the course starts, as a number : /// - 0 => first possible class of the day @@ -14,3 +15,10 @@ pub struct Course { /// Number of time slots the course takes up in the timetable pub size: i8, } +#[derive(Debug)] +pub struct Day { + /// Day's name + pub name: String, + /// Ordered list of all the courses of the day + pub courses: Vec>, +}