pub enum ContractValidationError {
EmptySchemaRef,
DuplicatePortContract {
node_id: NodeId,
port_id: PortId,
},
UnknownWorkflowNode {
node_id: NodeId,
},
UnknownWorkflowPort {
node_id: NodeId,
port_id: PortId,
direction: PortDirection,
},
PortDirectionMismatch {
node_id: NodeId,
port_id: PortId,
workflow: PortDirection,
contract: PortDirection,
},
MissingCapabilityDescriptor {
node_id: NodeId,
},
SchemaMismatch {
edge_index: usize,
source_node_id: NodeId,
source_port_id: PortId,
target_node_id: NodeId,
target_port_id: PortId,
},
Capability {
error: CapabilityValidationError,
},
}Expand description
Validation error for contract metadata.
Variants§
EmptySchemaRef
A schema reference was empty or whitespace-only.
DuplicatePortContract
A node contract duplicated the same port identifier.
UnknownWorkflowNode
A contract referenced a workflow node that does not exist.
UnknownWorkflowPort
A contract referenced a port that does not exist on the workflow node.
Fields
§
direction: PortDirectionDirection declared by the contract.
PortDirectionMismatch
A contract declared a port with a different direction than the workflow.
Fields
§
workflow: PortDirectionDirection declared by the workflow.
§
contract: PortDirectionDirection declared by the contract.
MissingCapabilityDescriptor
A contract referenced a node with no matching capability descriptor.
SchemaMismatch
A contract declared a schema mismatch on a workflow edge.
Fields
Capability
Capability validation failed.
Fields
§
error: CapabilityValidationErrorUnderlying capability validation error.
Trait Implementations§
Source§impl Clone for ContractValidationError
impl Clone for ContractValidationError
Source§fn clone(&self) -> ContractValidationError
fn clone(&self) -> ContractValidationError
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 ContractValidationError
impl Debug for ContractValidationError
Source§impl Display for ContractValidationError
impl Display for ContractValidationError
Source§impl Error for ContractValidationError
impl Error for ContractValidationError
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 From<CapabilityValidationError> for ContractValidationError
impl From<CapabilityValidationError> for ContractValidationError
Source§fn from(error: CapabilityValidationError) -> Self
fn from(error: CapabilityValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContractValidationError
impl PartialEq for ContractValidationError
Source§fn eq(&self, other: &ContractValidationError) -> bool
fn eq(&self, other: &ContractValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContractValidationError
impl StructuralPartialEq for ContractValidationError
Auto Trait Implementations§
impl Freeze for ContractValidationError
impl RefUnwindSafe for ContractValidationError
impl Send for ContractValidationError
impl Sync for ContractValidationError
impl Unpin for ContractValidationError
impl UnsafeUnpin for ContractValidationError
impl UnwindSafe for ContractValidationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).