pub enum TraverserError<'a> {
MissingField(Cow<'a, str>),
TypeMismatch {
expected: Cow<'a, str>,
found: Cow<'a, str>,
},
InvalidStructure(Cow<'a, str>),
CyclicReference(Cow<'a, str>),
PathNotFound(Cow<'a, str>),
}Expand description
Error types that can occur during OpenAPI specification traversal.
This enum represents various error conditions that may arise when parsing, validating, or navigating through an OpenAPI specification document.
Variants§
MissingField(Cow<'a, str>)
A required field was not found in the specification.
TypeMismatch
The found type does not match the expected type.
InvalidStructure(Cow<'a, str>)
The structure of the specification is invalid or contains logical errors.
CyclicReference(Cow<'a, str>)
A circular reference was detected in the specification.
PathNotFound(Cow<'a, str>)
A specified path does not exist in the specification.
Trait Implementations§
Source§impl<'a> Debug for TraverserError<'a>
impl<'a> Debug for TraverserError<'a>
Source§impl Display for TraverserError<'_>
impl Display for TraverserError<'_>
Source§impl Error for TraverserError<'_>
impl Error for TraverserError<'_>
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<'a> PartialEq for TraverserError<'a>
impl<'a> PartialEq for TraverserError<'a>
impl<'a> StructuralPartialEq for TraverserError<'a>
Auto Trait Implementations§
impl<'a> Freeze for TraverserError<'a>
impl<'a> RefUnwindSafe for TraverserError<'a>
impl<'a> Send for TraverserError<'a>
impl<'a> Sync for TraverserError<'a>
impl<'a> Unpin for TraverserError<'a>
impl<'a> UnsafeUnpin for TraverserError<'a>
impl<'a> UnwindSafe for TraverserError<'a>
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