pub struct ExerciseSet {
pub id: Option<String>,
pub title: Option<String>,
pub context: Vec<Block>,
pub exercises: Vec<Exercise>,
pub total_points: Option<u32>,
}Expand description
A set of related exercises with shared context.
Fields§
§id: Option<String>Optional unique identifier.
title: Option<String>Title of the exercise set.
context: Vec<Block>Shared context/preamble for all exercises.
exercises: Vec<Exercise>Exercises in the set.
total_points: Option<u32>Total points for the set.
Implementations§
Source§impl ExerciseSet
impl ExerciseSet
Trait Implementations§
Source§impl Clone for ExerciseSet
impl Clone for ExerciseSet
Source§fn clone(&self) -> ExerciseSet
fn clone(&self) -> ExerciseSet
Returns a duplicate 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 ExerciseSet
impl Debug for ExerciseSet
Source§impl<'de> Deserialize<'de> for ExerciseSet
impl<'de> Deserialize<'de> for ExerciseSet
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 PartialEq for ExerciseSet
impl PartialEq for ExerciseSet
Source§impl Serialize for ExerciseSet
impl Serialize for ExerciseSet
impl StructuralPartialEq for ExerciseSet
Auto Trait Implementations§
impl Freeze for ExerciseSet
impl RefUnwindSafe for ExerciseSet
impl Send for ExerciseSet
impl Sync for ExerciseSet
impl Unpin for ExerciseSet
impl UnsafeUnpin for ExerciseSet
impl UnwindSafe for ExerciseSet
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