pub enum HttpExtractionError {
InvalidDocument,
InvalidRoot,
UnsupportedVersion,
InvalidPaths,
LimitExceeded(ExtractionLimitExceeded),
}Expand description
Error returned while extracting an OpenAPI document.
Variants§
InvalidDocument
YAML or JSON syntax is invalid.
InvalidRoot
Root document is not an object.
UnsupportedVersion
Required contract version is absent or unsupported.
InvalidPaths
Required paths map is absent.
LimitExceeded(ExtractionLimitExceeded)
Extraction exceeded one configured invocation resource.
Trait Implementations§
Source§impl Debug for HttpExtractionError
impl Debug for HttpExtractionError
Source§impl Display for HttpExtractionError
impl Display for HttpExtractionError
Source§impl Error for HttpExtractionError
impl Error for HttpExtractionError
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<ExtractionLimitExceeded> for HttpExtractionError
impl From<ExtractionLimitExceeded> for HttpExtractionError
Source§fn from(source: ExtractionLimitExceeded) -> Self
fn from(source: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpExtractionError
impl RefUnwindSafe for HttpExtractionError
impl Send for HttpExtractionError
impl Sync for HttpExtractionError
impl Unpin for HttpExtractionError
impl UnsafeUnpin for HttpExtractionError
impl UnwindSafe for HttpExtractionError
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