pub struct Step {
pub provider_id: String,
pub provider_name: String,
pub resource: ResourceKind,
pub canonical: RelPath,
pub target: RelPath,
pub outcome: Outcome,
pub note: Option<String>,
pub import_body: Option<String>,
}Expand description
One decision.
Fields§
§provider_id: String§provider_name: String§resource: ResourceKind§canonical: RelPath§target: RelPath§outcome: Outcome§note: Option<String>§import_body: Option<String>Exact bytes to write when this step materialises an import stub.
Rendered during planning so that a Step fully describes its own
execution: the executor needs nothing but the plan, which keeps status
and apply provably in agreement about what will happen.
Implementations§
Source§impl Step
impl Step
Sourcepub fn is_write(&self) -> bool
pub fn is_write(&self) -> bool
Whether executing this step materialises something at the target.
Deliberately excludes Outcome::Retire: callers use this to decide what
a workspace now contains — a .gitignore block, for instance — and a path
on its way out belongs in neither.
Sourcepub fn is_removal(&self) -> bool
pub fn is_removal(&self) -> bool
Whether executing this step takes something away.
pub fn is_blocked(&self) -> bool
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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