pub enum PracticeValidation {
FileExists(String),
DirectoryExists(String),
FileContains {
path: String,
content: String,
},
OutputMatches {
command: String,
pattern: String,
},
Custom(String),
}Expand description
Validation for practice exercises
Variants§
FileExists(String)
File exists at path
DirectoryExists(String)
Directory exists at path
FileContains
File contains specific content
OutputMatches
Command output matches pattern
Custom(String)
Custom validator (description only, actual validation in engine)
Trait Implementations§
Source§impl Clone for PracticeValidation
impl Clone for PracticeValidation
Source§fn clone(&self) -> PracticeValidation
fn clone(&self) -> PracticeValidation
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 PracticeValidation
impl Debug for PracticeValidation
Source§impl<'de> Deserialize<'de> for PracticeValidation
impl<'de> Deserialize<'de> for PracticeValidation
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 PracticeValidation
impl RefUnwindSafe for PracticeValidation
impl Send for PracticeValidation
impl Sync for PracticeValidation
impl Unpin for PracticeValidation
impl UnwindSafe for PracticeValidation
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