pub struct Lesson {
pub id: i32,
pub url: String,
pub name: String,
pub teacher: String,
pub teacher_short: Option<String>,
pub attendances: BTreeMap<String, String>,
pub entry_latest: Option<LessonEntry>,
pub entries: Option<Vec<LessonEntry>>,
pub marks: Option<Vec<LessonMark>>,
pub exams: Option<Vec<LessonExam>>,
}Fields§
§id: i32§url: String§name: String§teacher: String§teacher_short: Option<String>Should always be Some if nothing went wrong
attendances: BTreeMap<String, String>§entry_latest: Option<LessonEntry>If this is None there is no latest entry
entries: Option<Vec<LessonEntry>>Will be empty if no entries are found and None if this value wasn’t initialized
marks: Option<Vec<LessonMark>>Will be empty if no marks are found and None if this value wasn’t initialized
exams: Option<Vec<LessonExam>>Will be empty if no exams are found and None if this value wasn’t initialized
Implementations§
Trait Implementations§
Source§impl Ord for Lesson
impl Ord for Lesson
Source§impl PartialOrd for Lesson
impl PartialOrd for Lesson
impl Eq for Lesson
impl StructuralPartialEq for Lesson
Auto Trait Implementations§
impl Freeze for Lesson
impl RefUnwindSafe for Lesson
impl Send for Lesson
impl Sync for Lesson
impl Unpin for Lesson
impl UnwindSafe for Lesson
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.