Archived
1
0
Fork 0
forked from Anri/cal8tor

add day struct

This commit is contained in:
Mylloon 2022-08-13 15:00:22 +02:00
parent aae662de56
commit 9f2b775601
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,9 +1,10 @@
#[derive(Debug)]
pub struct Course { pub struct Course {
/// Professor's name /// Professor's name
pub professor: String, pub professor: String,
/// List of rooms where the course takes place /// List of rooms where the course takes place
pub room: Box<String>, pub room: Vec<String>,
/// Time the course starts, as a number : /// Time the course starts, as a number :
/// - 0 => first possible class of the day /// - 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 /// Number of time slots the course takes up in the timetable
pub size: i8, 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<Option<Course>>,
}