pub enum WorkflowValidationError {
DuplicateNode {
node_id: NodeId,
},
DuplicatePort {
node_id: NodeId,
port_id: PortId,
},
UnknownNode {
edge_index: usize,
endpoint: EdgeEndpointRole,
node_id: NodeId,
},
UnknownPort {
edge_index: usize,
endpoint: EdgeEndpointRole,
node_id: NodeId,
port_id: PortId,
expected: PortDirection,
},
CycleDetected {
cycle: Vec<NodeId>,
},
}Expand description
Error returned when a workflow graph is structurally invalid.
Variants§
DuplicateNode
Two nodes in the graph used the same identifier.
DuplicatePort
A node declared the same port identifier more than once.
Fields
UnknownNode
An edge referenced a node that is not declared in the graph.
Fields
§
endpoint: EdgeEndpointRoleEndpoint role that referenced the missing node.
UnknownPort
An edge referenced a port that is not declared for the required direction.
Fields
§
endpoint: EdgeEndpointRoleEndpoint role that referenced the missing port.
§
expected: PortDirectionDirection required by this endpoint.
CycleDetected
The graph contains a directed cycle.
Trait Implementations§
Source§impl Clone for WorkflowValidationError
impl Clone for WorkflowValidationError
Source§fn clone(&self) -> WorkflowValidationError
fn clone(&self) -> WorkflowValidationError
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 WorkflowValidationError
impl Debug for WorkflowValidationError
Source§impl Display for WorkflowValidationError
impl Display for WorkflowValidationError
Source§impl Error for WorkflowValidationError
impl Error for WorkflowValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for WorkflowValidationError
impl PartialEq for WorkflowValidationError
Source§fn eq(&self, other: &WorkflowValidationError) -> bool
fn eq(&self, other: &WorkflowValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WorkflowValidationError
impl StructuralPartialEq for WorkflowValidationError
Auto Trait Implementations§
impl Freeze for WorkflowValidationError
impl RefUnwindSafe for WorkflowValidationError
impl Send for WorkflowValidationError
impl Sync for WorkflowValidationError
impl Unpin for WorkflowValidationError
impl UnsafeUnpin for WorkflowValidationError
impl UnwindSafe for WorkflowValidationError
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