pub enum UIError {
ParseError(String),
IoError(Error),
JsonError(Error),
ConfigError(String),
}Expand description
Errors that can occur when generating OpenAPI documentation UI.
Variants§
ParseError(String)
Failed to parse the OpenAPI specification.
IoError(Error)
An I/O error occurred (e.g., writing to a file).
JsonError(Error)
Failed to serialize or deserialize JSON.
ConfigError(String)
Invalid configuration was provided.
Trait Implementations§
Source§impl Error for UIError
impl Error for UIError
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()
Auto Trait Implementations§
impl Freeze for UIError
impl !RefUnwindSafe for UIError
impl Send for UIError
impl Sync for UIError
impl Unpin for UIError
impl UnsafeUnpin for UIError
impl !UnwindSafe for UIError
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