pub struct Plan {
pub name: String,
pub steps: Vec<Step>,
}Expand description
Represents an execution plan with multiple steps
Fields§
§name: String§steps: Vec<Step>Implementations§
Source§impl Plan
impl Plan
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self>
Load a plan from a TOML file
Sourcepub fn from_toml_str(toml_str: &str) -> Result<Self>
pub fn from_toml_str(toml_str: &str) -> Result<Self>
Load a plan from a TOML string
Sourcepub fn get_required_scripts(&self) -> Vec<String>
pub fn get_required_scripts(&self) -> Vec<String>
Get all unique script names referenced in this plan
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validate the plan for circular dependencies and other issues
Sourcepub fn get_execution_order(&self) -> Result<Vec<String>>
pub fn get_execution_order(&self) -> Result<Vec<String>>
Get the execution order for steps based on dependencies
Trait Implementations§
Source§impl From<PlanConfig> for Plan
impl From<PlanConfig> for Plan
Source§fn from(config: PlanConfig) -> Self
fn from(config: PlanConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
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