From 9f2b775601be1efac4916ffcd7bf6d290b3a81c0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 13 Aug 2022 15:00:22 +0200 Subject: [PATCH] add day struct --- src/models.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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>, +}