#[non_exhaustive]pub enum WorkflowDslError {
DocumentTooLarge {
actual_bytes: usize,
maximum_bytes: usize,
},
InvalidYaml {
message: String,
},
InvalidJson {
message: String,
},
InvalidDocument {
message: String,
},
InvalidGraph {
message: String,
},
Serialization {
message: String,
},
}Expand description
Failure returned while parsing, validating, planning, or encoding workflow DSL.
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.
DocumentTooLarge
The source exceeds the bounded parser input size.
Fields
InvalidYaml
YAML syntax or data conversion is invalid.
InvalidJson
JSON syntax or data conversion is invalid.
InvalidDocument
Document-level metadata or compatibility is invalid.
InvalidGraph
The DAG cannot produce a valid deterministic execution plan.
Serialization
A validated document or graph could not be serialized.
Trait Implementations§
Source§impl Debug for WorkflowDslError
impl Debug for WorkflowDslError
Source§impl Display for WorkflowDslError
impl Display for WorkflowDslError
Source§impl Error for WorkflowDslError
impl Error for WorkflowDslError
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 WorkflowDslError
impl RefUnwindSafe for WorkflowDslError
impl Send for WorkflowDslError
impl Sync for WorkflowDslError
impl Unpin for WorkflowDslError
impl UnsafeUnpin for WorkflowDslError
impl UnwindSafe for WorkflowDslError
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