pub enum GradingProgress {
Failed,
NotReady,
PendingManual,
Pending,
FullyGraded,
}
Expand description
Tells what’s the status of the grading progress for a user and exercise.
As close as possible LTI’s grading progress for compatibility: https://www.imsglobal.org/spec/lti-ags/v2p0#gradingprogress
Variants§
Failed
The grading could not complete.
NotReady
There is no grading process occurring; for example, the student has not yet made any submission.
PendingManual
Final Grade is pending, and it does require human intervention; if a Score value is present, it indicates the current value is partial and may be updated during the manual grading.
Pending
Final Grade is pending, but does not require manual intervention; if a Score value is present, it indicates the current value is partial and may be updated.
FullyGraded
The grading process is completed; the score value, if any, represents the current Final Grade;
Implementations§
source§impl GradingProgress
impl GradingProgress
pub fn is_complete(self) -> bool
Trait Implementations§
source§impl Clone for GradingProgress
impl Clone for GradingProgress
source§fn clone(&self) -> GradingProgress
fn clone(&self) -> GradingProgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GradingProgress
impl Debug for GradingProgress
source§impl<'r> Decode<'r, Postgres> for GradingProgress
impl<'r> Decode<'r, Postgres> for GradingProgress
source§impl<'de> Deserialize<'de> for GradingProgress
impl<'de> Deserialize<'de> for GradingProgress
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>,
source§impl<'q, DB: Database> Encode<'q, DB> for GradingProgress
impl<'q, DB: Database> Encode<'q, DB> for GradingProgress
source§fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn encode_by_ref( &self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer ) -> IsNull
fn size_hint(&self) -> usize
source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl Ord for GradingProgress
impl Ord for GradingProgress
source§fn cmp(&self, other: &GradingProgress) -> Ordering
fn cmp(&self, other: &GradingProgress) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for GradingProgress
impl PartialEq for GradingProgress
source§fn eq(&self, other: &GradingProgress) -> bool
fn eq(&self, other: &GradingProgress) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GradingProgress
impl PartialOrd for GradingProgress
source§fn partial_cmp(&self, other: &GradingProgress) -> Option<Ordering>
fn partial_cmp(&self, other: &GradingProgress) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for GradingProgress
impl Serialize for GradingProgress
source§impl Type<Postgres> for GradingProgress
impl Type<Postgres> for GradingProgress
impl Copy for GradingProgress
impl Eq for GradingProgress
impl StructuralEq for GradingProgress
impl StructuralPartialEq for GradingProgress
Auto Trait Implementations§
impl RefUnwindSafe for GradingProgress
impl Send for GradingProgress
impl Sync for GradingProgress
impl Unpin for GradingProgress
impl UnwindSafe for GradingProgress
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
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
key
and return true
if they are equal.