pub enum StructuralDelta {
AppendRun {
activity: String,
after: NodeId,
},
RemoveNode {
id: NodeId,
},
}Expand description
A bounded structural edit to a workflow graph.
The set is deliberately narrow (CN6): it is enough to prove the round-trip regenerates type-checking Gleam without becoming an unbounded second authoring surface.
Variants§
AppendRun
Append a sequential run node for activity immediately after after.
activity must be declared by the package manifest; an unknown activity
is refused (the canvas never invents an activity the source lacks).
Fields
RemoveNode
Remove the node with this id (and re-sequence around it).
Trait Implementations§
Source§impl Clone for StructuralDelta
impl Clone for StructuralDelta
Source§fn clone(&self) -> StructuralDelta
fn clone(&self) -> StructuralDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuralDelta
impl Debug for StructuralDelta
impl Eq for StructuralDelta
Source§impl PartialEq for StructuralDelta
impl PartialEq for StructuralDelta
impl StructuralPartialEq for StructuralDelta
Auto Trait Implementations§
impl Freeze for StructuralDelta
impl RefUnwindSafe for StructuralDelta
impl Send for StructuralDelta
impl Sync for StructuralDelta
impl Unpin for StructuralDelta
impl UnsafeUnpin for StructuralDelta
impl UnwindSafe for StructuralDelta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.