pub struct PlanEdit {
pub path: String,
pub from: Value,
pub to: Value,
}Expand description
One field-level edit to a Workflow plan grain. from is a staleness check
(it must equal what the live plan holds at path), which is what stops a
proposal authored against a superseded plan from applying to a newer one —
the role base_digest plays on super::recommendation::Proposal::Edit.
Fields§
§path: StringA dotted path into the plan body, e.g. edges.2.max_cycles. The
engine’s allowlist decides which paths are editable at all.
from: Value§to: ValueTrait Implementations§
Source§impl<'de> Deserialize<'de> for PlanEdit
impl<'de> Deserialize<'de> for PlanEdit
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
impl StructuralPartialEq for PlanEdit
Auto Trait Implementations§
impl Freeze for PlanEdit
impl RefUnwindSafe for PlanEdit
impl Send for PlanEdit
impl Sync for PlanEdit
impl Unpin for PlanEdit
impl UnsafeUnpin for PlanEdit
impl UnwindSafe for PlanEdit
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