pub struct PlanStep {
pub id: String,
pub description: String,
pub action: PlanAction,
pub dependencies: Vec<String>,
pub status: StepStatus,
pub result: Option<Value>,
}Fields§
§id: String§description: String§action: PlanAction§dependencies: Vec<String>§status: StepStatus§result: Option<Value>Implementations§
Source§impl PlanStep
impl PlanStep
pub fn new(description: impl Into<String>, action: PlanAction) -> Self
pub fn with_id(self, id: impl Into<String>) -> Self
pub fn with_dependencies(self, deps: Vec<String>) -> Self
pub fn mark_running(&mut self)
pub fn mark_completed(&mut self, result: Option<Value>)
pub fn mark_failed(&mut self, error: impl Into<String>)
pub fn mark_skipped(&mut self, reason: impl Into<String>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanStep
impl<'de> Deserialize<'de> for PlanStep
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 PlanStep
impl RefUnwindSafe for PlanStep
impl Send for PlanStep
impl Sync for PlanStep
impl Unpin for PlanStep
impl UnsafeUnpin for PlanStep
impl UnwindSafe for PlanStep
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