#[non_exhaustive]pub enum CompileError {
DuplicateNodeId(String),
UnknownRef {
kind: &'static str,
node: String,
id: String,
},
MissingEntry(String),
MissingEndpoint(String),
DuplicateEdgeSource(String),
MissingField {
node: String,
field: &'static str,
},
EdgeMissingBranchTarget(String),
EdgeHasBothToAndWhen(String),
}Expand description
Why a crate::WorkflowDef could not be compiled into a flow.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateNodeId(String)
Two nodes share an id.
UnknownRef
A node references an id not present in the registry.
Fields
MissingEntry(String)
entry names a node that does not exist.
MissingEndpoint(String)
An edge endpoint (from/to) names a node that does not exist.
DuplicateEdgeSource(String)
More than one edge shares a from node.
MissingField
An agent/tool node is missing a required input_from/output_to.
EdgeMissingBranchTarget(String)
An edge names no target node — neither an unconditional to nor a
conditional then/else pair.
EdgeHasBothToAndWhen(String)
An edge specifies both an unconditional to and a conditional
when; the two forms are mutually exclusive.
Trait Implementations§
Source§impl Debug for CompileError
impl Debug for CompileError
Source§impl Display for CompileError
impl Display for CompileError
Source§impl Error for CompileError
impl Error for CompileError
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()
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnsafeUnpin for CompileError
impl UnwindSafe for CompileError
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