diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 89c43f1..25f6ea6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,6 +24,9 @@ type NomError<'a> = nom::Err<nom::error::Error<&'a str>>; #[derive(Clone, Debug, Deserialize, Serialize)] #[non_exhaustive] pub struct Course<'a> { + /// Courses that must be taken at the same time as this course. + pub corequisites: Vec<&'a str>, + /// Description of the course. pub description: Option<&'a str>, @@ -170,6 +173,7 @@ impl<'a> Course<'a> { impl Default for Course<'_> { fn default() -> Self { Self { + corequisites: Vec::default(), description: Option::default(), offered: true, points: f32::default(), |