pub enum ValidateError {
Resolve(ResolveError),
NoSnapshot {
url: String,
},
Regex {
type_code: String,
source: Error,
},
Encode {
structure: String,
element: String,
source: EncodeError,
},
UnknownType {
name: String,
},
}Expand description
Why a validation could not run to the end.
An instance that does not conform is never an error: it is a
Report with issues. An error says the package set cannot answer.
Variants§
Resolve(ResolveError)
A definition the validation needs did not resolve.
NoSnapshot
A definition carries no snapshot, which the validator reads.
Regex
The regex extension of a primitive’s definition does not compile.
Encode
An element definition’s fixed[x] or pattern[x] has no JSON form.
Fields
§
source: EncodeErrorThe encode error.
UnknownType
The element table names a type it does not carry.
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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<ResolveError> for ValidateError
impl From<ResolveError> for ValidateError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ValidateError
impl !UnwindSafe for ValidateError
impl Freeze for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.