pub enum LoadError {
Overlay(OverlayError),
Shape(Error),
NoServer,
ServerUrl {
url: String,
source: InvalidUri,
},
NoOperationId {
method: String,
path: String,
},
Name(NameError),
Override {
op: String,
key: &'static str,
},
DuplicateCommand {
group: CommandName,
command: CommandName,
first: String,
second: String,
},
Reference(RefError),
Parameter {
op: String,
name: String,
reason: &'static str,
},
Unrunnable {
op: String,
name: String,
source: ScalarError,
},
}Expand description
Reducing an OpenAPI document to Operations failed.
Requires the document feature. Every variant names a way that reading a
document goes wrong, so the whole type is bless-time: a binary that starts
from Document::from_blob cannot produce one, does not compile one, and
does not have to know the list exists.
Variants§
Overlay(OverlayError)
Shape(Error)
NoServer
ServerUrl
NoOperationId
Name(NameError)
Override
DuplicateCommand
Reference(RefError)
Parameter
Unrunnable
A rule the document states that cannot be run — a pattern no regex
engine here reads. Refused while the document is reduced, because a rule
that cannot run is one every value would otherwise pass.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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<OverlayError> for LoadError
impl From<OverlayError> for LoadError
Source§fn from(source: OverlayError) -> Self
fn from(source: OverlayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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