Enum api_request_utils::RequestError
source · pub enum RequestError<E> {
RequestingError(Error),
UnableToReadBody,
InvalidJsonBody(DeserializationError),
Json(E),
}
Expand description
Enum representing different types of request errors.
Variants§
RequestingError(Error)
Request sending error variant.
UnableToReadBody
Error indicating inability to read the response body.
InvalidJsonBody(DeserializationError)
Error indicating invalid JSON body during deserialization.
Json(E)
Json when request is not successful (default when status code is not 200)
Auto Trait Implementations§
impl<E> !RefUnwindSafe for RequestError<E>
impl<E> Send for RequestError<E>where E: Send,
impl<E> Sync for RequestError<E>where E: Sync,
impl<E> Unpin for RequestError<E>where E: Unpin,
impl<E> !UnwindSafe for RequestError<E>
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