pub struct StateNodeSpec {
pub name: String,
pub runnable: Arc<dyn Runnable>,
pub retry_policy: Option<RetryPolicy>,
pub metadata: Option<Value>,
pub ends: Option<Vec<String>>,
}Expand description
Specification for a graph node.
Holds the node’s runnable, metadata, and execution options.
Fields§
§name: StringName of this node.
runnable: Arc<dyn Runnable>The executable logic for this node.
retry_policy: Option<RetryPolicy>Optional retry policy.
metadata: Option<Value>Optional metadata.
ends: Option<Vec<String>>Static destinations inferred from Command return types. If set, the node can only route to these targets.
Implementations§
Trait Implementations§
Source§impl Clone for StateNodeSpec
impl Clone for StateNodeSpec
Source§fn clone(&self) -> StateNodeSpec
fn clone(&self) -> StateNodeSpec
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for StateNodeSpec
impl !UnwindSafe for StateNodeSpec
impl Freeze for StateNodeSpec
impl Send for StateNodeSpec
impl Sync for StateNodeSpec
impl Unpin for StateNodeSpec
impl UnsafeUnpin for StateNodeSpec
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