pub struct WorkflowIssue {
pub code: IssueCode,
pub message: String,
pub path: Option<String>,
pub task_id: Option<String>,
}Expand description
One problem with a workflow definition.
Shared by Workflow::validate_authored and, from the registry side,
EngineBuilder::check_workflow. Both fill what they genuinely know: a
definition check always has an authored coordinate and knows the step id
when the problem concerns a step; a registry check always has a task id and
reports a path relative to that task.
Fields§
§code: IssueCodeStable machine-readable classification.
message: StringHuman-readable explanation. Not stable — branch on Self::code.
path: Option<String>Where the problem is. From Workflow::validate_authored this is the
coordinate the author typed, rooted at the workflow document:
tasks[1].tasks[0].id.
task_id: Option<String>The step this concerns, when it concerns one. Step ids are unique across tasks and groups, so this identifies a step on its own.
Trait Implementations§
Source§impl Clone for WorkflowIssue
impl Clone for WorkflowIssue
Source§fn clone(&self) -> WorkflowIssue
fn clone(&self) -> WorkflowIssue
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 WorkflowIssue
impl Debug for WorkflowIssue
Source§impl Display for WorkflowIssue
impl Display for WorkflowIssue
impl Eq for WorkflowIssue
Source§impl PartialEq for WorkflowIssue
impl PartialEq for WorkflowIssue
impl StructuralPartialEq for WorkflowIssue
Auto Trait Implementations§
impl Freeze for WorkflowIssue
impl RefUnwindSafe for WorkflowIssue
impl Send for WorkflowIssue
impl Sync for WorkflowIssue
impl Unpin for WorkflowIssue
impl UnsafeUnpin for WorkflowIssue
impl UnwindSafe for WorkflowIssue
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