Enum open_library::OpenLibraryError [−][src]
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
Fields of ApiError
status_code: StatusCodeerror: Option<OpenLibraryErrorResponse>Fields of ClientBuildingError
source: ErrorFields of InternalError
reason: StringFields of JsonParseError
source: ErrorFields of NotAuthenticated
reason: StringFields of ParsingError
reason: StringFields of RequestFailed
source: ErrorTrait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for OpenLibraryError
impl Send for OpenLibraryError
impl Sync for OpenLibraryError
impl Unpin for OpenLibraryError
impl !UnwindSafe for OpenLibraryError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more