pub enum OpenLibraryError {
ApiError {
status_code: StatusCode,
error: Option<OpenLibraryErrorResponse>,
},
ClientBuildingError {
source: Error,
},
InternalError {
reason: String,
},
JsonParseError {
source: Error,
},
NotAuthenticated {
reason: String,
},
ParsingError {
reason: String,
},
RequestFailed {
source: Error,
},
}
Variants§
ApiError
ClientBuildingError
InternalError
JsonParseError
NotAuthenticated
ParsingError
RequestFailed
Trait Implementations§
Source§impl Debug for OpenLibraryError
impl Debug for OpenLibraryError
Source§impl Display for OpenLibraryError
impl Display for OpenLibraryError
Source§impl Error for OpenLibraryError
impl Error for OpenLibraryError
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<Error> for OpenLibraryError
impl From<Error> for OpenLibraryError
Source§impl From<ParseError> for OpenLibraryError
impl From<ParseError> for OpenLibraryError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenLibraryError
impl !RefUnwindSafe for OpenLibraryError
impl Send for OpenLibraryError
impl Sync for OpenLibraryError
impl Unpin for OpenLibraryError
impl !UnwindSafe for OpenLibraryError
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