pub struct ExecutionPlan {
pub id: String,
pub name: String,
pub steps: Vec<ExecutionStep>,
pub risk_score: RiskScore,
pub estimated_duration: Duration,
pub estimated_complexity: ComplexityLevel,
pub requires_approval: bool,
pub editable: bool,
}Expand description
Execution plan containing all steps to be executed
Fields§
§id: StringUnique identifier for the plan
name: StringHuman-readable name for the plan
steps: Vec<ExecutionStep>Steps to execute in order
risk_score: RiskScoreRisk score for the plan
estimated_duration: DurationEstimated duration for execution
estimated_complexity: ComplexityLevelEstimated complexity level
requires_approval: boolWhether approval is required before execution
editable: boolWhether the plan can be edited before execution
Implementations§
Source§impl ExecutionPlan
impl ExecutionPlan
Sourcepub fn new(name: String, steps: Vec<ExecutionStep>) -> Self
pub fn new(name: String, steps: Vec<ExecutionStep>) -> Self
Create a new execution plan
Trait Implementations§
Source§impl Clone for ExecutionPlan
impl Clone for ExecutionPlan
Source§fn clone(&self) -> ExecutionPlan
fn clone(&self) -> ExecutionPlan
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 ExecutionPlan
impl Debug for ExecutionPlan
Source§impl<'de> Deserialize<'de> for ExecutionPlan
impl<'de> Deserialize<'de> for ExecutionPlan
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 ExecutionPlan
impl RefUnwindSafe for ExecutionPlan
impl Send for ExecutionPlan
impl Sync for ExecutionPlan
impl Unpin for ExecutionPlan
impl UnwindSafe for ExecutionPlan
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