pub struct Override {
pub week: usize,
pub day: String,
pub period: String,
pub subject: Option<String>,
pub room: Option<String>,
pub teacher: Option<String>,
pub class_code: Option<String>,
}Expand description
Override for a specific lesson in the timetable.
Allows correcting parsing errors or making manual adjustments to specific lessons by week, day, and period.
Fields§
§week: usizeWeek number (1-based, e.g., 1 = Week 1, 2 = Week 2)
day: StringDay name (“Monday”, “Tuesday”, etc. or abbreviated “Mon”, “Tue”)
period: StringPeriod identifier (“PD”, “L1”, “L2”, “L3”, “L4”, “L5”)
subject: Option<String>Override subject name (optional)
room: Option<String>Override room code (optional)
teacher: Option<String>Override teacher name (optional)
class_code: Option<String>Override class code (optional)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Override
impl<'de> Deserialize<'de> for Override
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Override
impl RefUnwindSafe for Override
impl Send for Override
impl Sync for Override
impl Unpin for Override
impl UnwindSafe for Override
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more