pub enum ActivityProgress {
Initialized,
Started,
InProgress,
Submitted,
Completed,
}
Expand description
Indicates what is the user’s completion status for a exercise.
As close as possible to LTI’s activity progress for compatibility: https://www.imsglobal.org/spec/lti-ags/v2p0#activityprogress.
Variants§
Initialized
The user has not started the activity, or the activity has been reset for that student.
Started
The activity associated with the exercise has been started by the user to which the result relates.
InProgress
The activity is being drafted and is available for comment.
Submitted
The activity has been submitted at least once by the user but the user is still able make further submissions.
Completed
The user has completed the activity associated with the exercise.
Trait Implementations§
source§impl Clone for ActivityProgress
impl Clone for ActivityProgress
source§fn clone(&self) -> ActivityProgress
fn clone(&self) -> ActivityProgress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActivityProgress
impl Debug for ActivityProgress
source§impl<'r> Decode<'r, Postgres> for ActivityProgress
impl<'r> Decode<'r, Postgres> for ActivityProgress
source§impl Default for ActivityProgress
impl Default for ActivityProgress
source§fn default() -> ActivityProgress
fn default() -> ActivityProgress
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ActivityProgress
impl<'de> Deserialize<'de> for ActivityProgress
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
source§impl<'q, DB: Database> Encode<'q, DB> for ActivityProgress
impl<'q, DB: Database> Encode<'q, DB> for ActivityProgress
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,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl PartialEq for ActivityProgress
impl PartialEq for ActivityProgress
source§fn eq(&self, other: &ActivityProgress) -> bool
fn eq(&self, other: &ActivityProgress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActivityProgress
impl Serialize for ActivityProgress
source§impl Type<Postgres> for ActivityProgress
impl Type<Postgres> for ActivityProgress
impl Copy for ActivityProgress
impl Eq for ActivityProgress
impl StructuralEq for ActivityProgress
impl StructuralPartialEq for ActivityProgress
Auto Trait Implementations§
impl RefUnwindSafe for ActivityProgress
impl Send for ActivityProgress
impl Sync for ActivityProgress
impl Unpin for ActivityProgress
impl UnwindSafe for ActivityProgress
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<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.