Struct jsonschema::error::ValidationError [−][src]
pub struct ValidationError<'a> {
pub instance: Cow<'a, Value>,
pub kind: ValidationErrorKind,
pub instance_path: JSONPointer,
pub schema_path: JSONPointer,
}
Expand description
An error that can occur during validation.
Fields
instance: Cow<'a, Value>
Value of the property that failed validation.
kind: ValidationErrorKind
Type of validation error.
instance_path: JSONPointer
Path to the value that failed validation.
schema_path: JSONPointer
Path to the JSON Schema keyword that failed validation.
Trait Implementations
Textual representation of various validation errors.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ValidationError<'a>
impl<'a> Send for ValidationError<'a>
impl<'a> Sync for ValidationError<'a>
impl<'a> Unpin for ValidationError<'a>
impl<'a> !UnwindSafe for ValidationError<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more