pub enum ValidationError {
Show 14 variants
InvalidFlowId(String),
UnsupportedSpecVersion(String),
MultipleEntryNodes(usize),
DuplicateNodeId(String),
DuplicateEdgeId(String),
DanglingEdgeSource {
edge: String,
source: String,
},
DanglingEdgeTarget {
edge: String,
target: String,
},
InvalidVendorNamespace {
node: String,
node_type: String,
},
V2NodeInV1Document {
node: String,
node_type: String,
},
InvalidNodeData {
node: String,
message: String,
},
UnknownOperator {
node: String,
operator: String,
},
MissingHandleEdge {
node: String,
handle: String,
},
InvalidRequires {
message: String,
},
InvalidSchedule {
message: String,
},
}Expand description
A single spec-conformance failure.
Variants§
InvalidFlowId(String)
id does not match ^[A-Za-z0-9-]{1,64}$.
UnsupportedSpecVersion(String)
spec_version is a value this parser doesn’t understand.
MultipleEntryNodes(usize)
More than one node in the graph has node_type = "entry".
DuplicateNodeId(String)
Two nodes share the same id.
DuplicateEdgeId(String)
Two edges share the same id.
DanglingEdgeSource
An edge’s source does not match any node id.
Fields
DanglingEdgeTarget
An edge’s target does not match any node id.
Fields
InvalidVendorNamespace
A custom node_type has a malformed vendor namespace.
Fields
V2NodeInV1Document
A v2-only core node type is used in a document declaring spec_version = "1".
InvalidNodeData
A node’s data payload does not match the schema for its node_type.
UnknownOperator
A conditional condition names an operator the runtime doesn’t know.
MissingHandleEdge
A node declares an output handle that has no matching outgoing edge.
Fields
InvalidRequires
A requires entry is malformed: a bad pack id, an unparseable semver
range or resolved version, a malformed content hash, or a duplicate id.
InvalidSchedule
A flow-level schedule is malformed: an empty
or duplicate id, a non-positive interval, or an empty cron expression.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
impl Eq for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()