pub enum ValidationErrorCode {
DuplicateId,
MissingRoot,
DanglingReference,
SelfReference,
CircularReference,
OrphanComponent,
GlobalDepthExceeded,
FuncCallDepthExceeded,
InvalidPathSyntax,
}Expand description
Machine-readable classification of a validation problem.
Mirrors the distinct failure modes the Python validator distinguishes:
integrity (DuplicateId, MissingRoot, DanglingReference), topology
(SelfReference, CircularReference, OrphanComponent), and
recursion/path (GlobalDepthExceeded, FuncCallDepthExceeded,
InvalidPathSyntax).
Variants§
DuplicateId
MissingRoot
DanglingReference
SelfReference
CircularReference
OrphanComponent
GlobalDepthExceeded
FuncCallDepthExceeded
InvalidPathSyntax
Trait Implementations§
Source§impl Clone for ValidationErrorCode
impl Clone for ValidationErrorCode
Source§fn clone(&self) -> ValidationErrorCode
fn clone(&self) -> ValidationErrorCode
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 ValidationErrorCode
impl Debug for ValidationErrorCode
impl Eq for ValidationErrorCode
Source§impl PartialEq for ValidationErrorCode
impl PartialEq for ValidationErrorCode
Source§fn eq(&self, other: &ValidationErrorCode) -> bool
fn eq(&self, other: &ValidationErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidationErrorCode
Auto Trait Implementations§
impl Freeze for ValidationErrorCode
impl RefUnwindSafe for ValidationErrorCode
impl Send for ValidationErrorCode
impl Sync for ValidationErrorCode
impl Unpin for ValidationErrorCode
impl UnsafeUnpin for ValidationErrorCode
impl UnwindSafe for ValidationErrorCode
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