pub trait StepTrait {
// Required methods
fn plan(&self, randomizer: &Randomizer) -> Result<Plan>;
fn is_success(
&self,
execution_result: &Output,
) -> Result<bool, &'static str>;
fn to_yaml(&self) -> Value;
// Provided methods
fn setup(&self) -> Result<()> { ... }
fn run_check(&self) -> Option<String> { ... }
fn run_test(&self) -> Option<String> { ... }
}Expand description
A trait that defines the behavior required for steps in the execution process.
Required Methods§
sourcefn plan(&self, randomizer: &Randomizer) -> Result<Plan>
fn plan(&self, randomizer: &Randomizer) -> Result<Plan>
Provided Methods§
sourcefn setup(&self) -> Result<()>
fn setup(&self) -> Result<()>
Prepares the setup by creating necessary directories and performing initialization steps.
§Errors
Returns an error if the setup fails, such as when it is unable to create the required directory.