pub struct ValidationError {
pub code: ValidationErrorCode,
pub message: String,
pub component_id: Option<String>,
pub path: Option<String>,
}Expand description
A single validation finding.
Fields§
§code: ValidationErrorCode§message: String§component_id: Option<String>§path: Option<String>Implementations§
Source§impl ValidationError
impl ValidationError
pub fn duplicate_id(id: &str) -> Self
pub fn missing_root(root_id: &str) -> Self
pub fn dangling(component_id: &str, ref_id: &str, field: &str) -> Self
pub fn self_ref(component_id: &str, field: &str) -> Self
pub fn circular(component_id: &str) -> Self
pub fn orphan(component_id: &str, root_id: &str) -> Self
pub fn global_depth(component_id: &str) -> Self
pub fn func_depth() -> Self
pub fn invalid_path(path: &str) -> Self
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
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 moreAuto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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