pub struct ExerciseManifest {
pub id: Ustr,
pub lesson_id: Ustr,
pub course_id: Ustr,
pub name: String,
pub description: Option<String>,
pub exercise_type: ExerciseType,
pub exercise_asset: ExerciseAsset,
}Expand description
Manifest describing a single exercise.
Fields§
§id: UstrThe ID assigned to this exercise.
For example, music::instrument::guitar::basic_jazz_chords::major_chords::exercise_1.
lesson_id: UstrThe ID of the lesson to which this exercise belongs.
course_id: UstrThe ID of the course to which this exercise belongs.
name: StringThe name of the exercise to be presented to the user.
For example, “Exercise 1”.
description: Option<String>An optional description of the exercise.
exercise_type: ExerciseTypeThe type of knowledge the exercise tests.
exercise_asset: ExerciseAssetThe asset containing the exercise itself.
Trait Implementations§
Source§impl Clone for ExerciseManifest
impl Clone for ExerciseManifest
Source§fn clone(&self) -> ExerciseManifest
fn clone(&self) -> ExerciseManifest
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 ExerciseManifest
impl Debug for ExerciseManifest
Source§impl<'de> Deserialize<'de> for ExerciseManifest
impl<'de> Deserialize<'de> for ExerciseManifest
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 GetUnitType for ExerciseManifest
impl GetUnitType for ExerciseManifest
Source§fn get_unit_type(&self) -> UnitType
fn get_unit_type(&self) -> UnitType
Returns the type of the unit associated with the manifest.
Source§impl NormalizePaths for ExerciseManifest
impl NormalizePaths for ExerciseManifest
Source§fn normalize_paths(&self, working_dir: &Path) -> Result<Self>
fn normalize_paths(&self, working_dir: &Path) -> Result<Self>
Converts all relative paths in the object to absolute paths.
Source§impl PartialEq for ExerciseManifest
impl PartialEq for ExerciseManifest
Source§impl Serialize for ExerciseManifest
impl Serialize for ExerciseManifest
Source§impl VerifyPaths for ExerciseManifest
impl VerifyPaths for ExerciseManifest
impl StructuralPartialEq for ExerciseManifest
Auto Trait Implementations§
impl Freeze for ExerciseManifest
impl RefUnwindSafe for ExerciseManifest
impl Send for ExerciseManifest
impl Sync for ExerciseManifest
impl Unpin for ExerciseManifest
impl UnsafeUnpin for ExerciseManifest
impl UnwindSafe for ExerciseManifest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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