pub struct CourseMaterialExercise {
pub exercise: Exercise,
pub can_post_submission: bool,
pub current_exercise_slide: CourseMaterialExerciseSlide,
pub exercise_status: Option<ExerciseStatus>,
pub exercise_slide_submission_counts: HashMap<Uuid, i64>,
pub peer_or_self_review_config: Option<CourseMaterialPeerOrSelfReviewConfig>,
pub previous_exercise_slide_submission: Option<ExerciseSlideSubmission>,
pub user_course_instance_exercise_service_variables: Vec<UserCourseInstanceExerciseServiceVariable>,
}
Fields§
§exercise: Exercise
§can_post_submission: bool
§current_exercise_slide: CourseMaterialExerciseSlide
§exercise_status: Option<ExerciseStatus>
None for logged out users.
exercise_slide_submission_counts: HashMap<Uuid, i64>
§peer_or_self_review_config: Option<CourseMaterialPeerOrSelfReviewConfig>
§previous_exercise_slide_submission: Option<ExerciseSlideSubmission>
§user_course_instance_exercise_service_variables: Vec<UserCourseInstanceExerciseServiceVariable>
Implementations§
Source§impl CourseMaterialExercise
impl CourseMaterialExercise
pub fn clear_grading_information(&mut self)
pub fn clear_model_solution_specs(&mut self)
Trait Implementations§
Source§impl Debug for CourseMaterialExercise
impl Debug for CourseMaterialExercise
Source§impl<'de> Deserialize<'de> for CourseMaterialExercise
impl<'de> Deserialize<'de> for CourseMaterialExercise
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 CourseMaterialExercise
impl RefUnwindSafe for CourseMaterialExercise
impl Send for CourseMaterialExercise
impl Sync for CourseMaterialExercise
impl Unpin for CourseMaterialExercise
impl UnwindSafe for CourseMaterialExercise
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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