pub struct Node {
pub id: NodeId,
pub name: String,
pub kind: NodeKind,
pub position: Option<(f64, f64)>,
pub retry_config: Option<RetryConfig>,
pub timeout_config: Option<TimeoutConfig>,
}Expand description
Node in the workflow DAG
Fields§
§id: NodeIdUnique node identifier
name: StringDisplay name of the node
kind: NodeKindType and configuration of the node
position: Option<(f64, f64)>Position in the visual editor (optional)
retry_config: Option<RetryConfig>Retry configuration for this node (optional)
timeout_config: Option<TimeoutConfig>Timeout configuration for this node (optional)
Implementations§
Source§impl Node
impl Node
pub fn new(name: String, kind: NodeKind) -> Self
pub fn with_retry(self, retry_config: RetryConfig) -> Self
pub fn with_timeout(self, timeout_config: TimeoutConfig) -> Self
pub fn with_position(self, x: f64, y: f64) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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