pub struct MyStudiesCourseModule {Show 16 fields
pub course_module_id: Uuid,
pub name: Option<String>,
pub order_number: i32,
pub ects_credits: Option<f32>,
pub uh_course_code: Option<String>,
pub supports_credit_registration: bool,
pub is_credit_registration_starting: bool,
pub score_given: f32,
pub score_maximum: Option<u32>,
pub score_required: Option<i32>,
pub total_exercises: Option<u32>,
pub attempted_exercises: i32,
pub attempted_exercises_required: Option<i32>,
pub automatic_completion: bool,
pub requires_exam: bool,
pub completion: Option<MyStudiesCompletion>,
}Expand description
A course module as the student’s own profile shows it, with their best visible completion.
Fields§
§course_module_id: Uuid§name: Option<String>None for the course’s default module; the frontend labels those with the course name.
order_number: i32§ects_credits: Option<f32>§uh_course_code: Option<String>§supports_credit_registration: boolWhether this student’s credits for the module go through credit registration via Suotar: the
flag of the completion models::course_module_completions::select_registration_completion
picks, or, before a completion is shown, whether a new one would get it.
is_credit_registration_starting: boolWhether a credit registration is about to be created for the shown completion, which the
student is told is sending until it exists.
score_given: f32Exercise points the student has in the module, rounded to two decimals. Not ECTS credits.
score_maximum: Option<u32>Exercise points the module offers. None when it has no exercises.
score_required: Option<i32>Exercise points an automatic completion requires. None when the module is completed
manually or sets no point threshold.
total_exercises: Option<u32>Exercises the module offers. None when it has none.
attempted_exercises: i32Exercises the student has answered.
attempted_exercises_required: Option<i32>Attempted exercises an automatic completion requires. None when the module is completed
manually or sets no attempt threshold.
automatic_completion: boolFalse when a teacher grades the module, in which case neither threshold says anything about completing it.
requires_exam: boolWhen true, the thresholds qualify the student to sit an exam rather than complete the module.
completion: Option<MyStudiesCompletion>None when no completion may be shown to the student. May be a failed one, so check passed.
Trait Implementations§
Source§impl Clone for MyStudiesCourseModule
impl Clone for MyStudiesCourseModule
Source§fn clone(&self) -> MyStudiesCourseModule
fn clone(&self) -> MyStudiesCourseModule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for MyStudiesCourseModule
impl ComposeSchema for MyStudiesCourseModule
Source§impl Debug for MyStudiesCourseModule
impl Debug for MyStudiesCourseModule
Source§impl<'de> Deserialize<'de> for MyStudiesCourseModule
impl<'de> Deserialize<'de> for MyStudiesCourseModule
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 PartialEq for MyStudiesCourseModule
impl PartialEq for MyStudiesCourseModule
Source§impl Serialize for MyStudiesCourseModule
impl Serialize for MyStudiesCourseModule
Source§impl ToSchema for MyStudiesCourseModule
impl ToSchema for MyStudiesCourseModule
impl StructuralPartialEq for MyStudiesCourseModule
Auto Trait Implementations§
impl Freeze for MyStudiesCourseModule
impl RefUnwindSafe for MyStudiesCourseModule
impl Send for MyStudiesCourseModule
impl Sync for MyStudiesCourseModule
impl Unpin for MyStudiesCourseModule
impl UnsafeUnpin for MyStudiesCourseModule
impl UnwindSafe for MyStudiesCourseModule
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].