pub enum ExamEnrollmentData {
EnrolledAndStarted {
page_id: Uuid,
page: Box<Page>,
enrollment: ExamEnrollment,
},
NotEnrolled {
can_enroll: bool,
},
NotYetStarted,
StudentTimeUp,
}
Variants§
EnrolledAndStarted
The student has enrolled to the exam and started it.
NotEnrolled
The student has not enrolled to the exam yet. However, the the exam is open.
NotYetStarted
The exam’s start time is in the future, no one can enroll yet.
StudentTimeUp
The exam is still open but the student has run out of time.
Trait Implementations§
source§impl Debug for ExamEnrollmentData
impl Debug for ExamEnrollmentData
Auto Trait Implementations§
impl RefUnwindSafe for ExamEnrollmentData
impl Send for ExamEnrollmentData
impl Sync for ExamEnrollmentData
impl Unpin for ExamEnrollmentData
impl UnwindSafe for ExamEnrollmentData
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