pub struct TmcCourseConfig {
pub course: String,
pub exercises: BTreeMap<String, ProjectsDirTmcExercise>,
}Expand description
A course configuration file. Contains information of all of the exercises of this course in the projects directory.
Fields§
§course: StringThe course’s name.
exercises: BTreeMap<String, ProjectsDirTmcExercise>The course’s exercises in a map with the exercise’s name as the key.
Implementations§
Source§impl TmcCourseConfig
impl TmcCourseConfig
pub fn add_exercise(&mut self, exercise_name: String, id: u32, checksum: String)
pub fn save_to_projects_dir( &self, projects_dir: &Path, ) -> Result<(), LangsError>
Trait Implementations§
Source§impl Debug for TmcCourseConfig
impl Debug for TmcCourseConfig
Source§impl<'de> Deserialize<'de> for TmcCourseConfig
impl<'de> Deserialize<'de> for TmcCourseConfig
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 TmcCourseConfig
impl RefUnwindSafe for TmcCourseConfig
impl Send for TmcCourseConfig
impl Sync for TmcCourseConfig
impl Unpin for TmcCourseConfig
impl UnwindSafe for TmcCourseConfig
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