pub struct ExercisesConfig {
pub skip_build: bool,
/* private fields */
}
Expand description
The configuration for the current collection of exercises.
Fields§
§skip_build: bool
Don’t try to build the project before running the verification command.
Implementations§
Source§impl ExercisesConfig
impl ExercisesConfig
pub fn load() -> Result<Self, Error>
Sourcepub fn exercises_dir(&self) -> &Path
pub fn exercises_dir(&self) -> &Path
The path to the directory containing the exercises for the current collection of workshop-runner.
Sourcepub fn verification(&self) -> &[Verification]
pub fn verification(&self) -> &[Verification]
The command(s) that should be run to verify that exercises are correct.
If empty, workshop-runner will use cargo test
as default.
Trait Implementations§
Source§impl Debug for ExercisesConfig
impl Debug for ExercisesConfig
Source§impl<'de> Deserialize<'de> for ExercisesConfig
impl<'de> Deserialize<'de> for ExercisesConfig
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 ExercisesConfig
impl RefUnwindSafe for ExercisesConfig
impl Send for ExercisesConfig
impl Sync for ExercisesConfig
impl Unpin for ExercisesConfig
impl UnwindSafe for ExercisesConfig
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