pub enum WorkloadValidationError {
Shape(ShapeError),
Semantic(SemanticError),
Context(ContextError),
}Expand description
Top-level validation error spanning both shape and semantic layers.
Shape always wins: if the spec is structurally invalid, semantic checks
never run.
Variants§
Shape(ShapeError)
Hard shape constraint failed — spec is structurally invalid.
Semantic(SemanticError)
Semantic check failed — spec references an unknown cluster resource.
Context(ContextError)
Transient ValidationContext lookup failure — the check itself failed.
Trait Implementations§
Source§impl Debug for WorkloadValidationError
impl Debug for WorkloadValidationError
Source§impl Display for WorkloadValidationError
impl Display for WorkloadValidationError
Source§impl Error for WorkloadValidationError
impl Error for WorkloadValidationError
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<ContextError> for WorkloadValidationError
impl From<ContextError> for WorkloadValidationError
Source§fn from(e: ContextError) -> Self
fn from(e: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<ShapeError> for WorkloadValidationError
impl From<ShapeError> for WorkloadValidationError
Source§fn from(e: ShapeError) -> Self
fn from(e: ShapeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkloadValidationError
impl PartialEq for WorkloadValidationError
impl StructuralPartialEq for WorkloadValidationError
Auto Trait Implementations§
impl Freeze for WorkloadValidationError
impl RefUnwindSafe for WorkloadValidationError
impl Send for WorkloadValidationError
impl Sync for WorkloadValidationError
impl Unpin for WorkloadValidationError
impl UnsafeUnpin for WorkloadValidationError
impl UnwindSafe for WorkloadValidationError
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