pub enum ReqwestError {
ReqwestError(Error),
SerdeJsonError(Error),
JsonRpcError(JsonRpcError),
}
Variants§
ReqwestError(Error)
An error from the reqwest
library
See reqwest::Error
for more information.
SerdeJsonError(Error)
A parsing error from the serde_json library
This might be raised if the returned JSON data is invalid, or couldn’t
be parsed into the XxxResponse
struct properly.
JsonRpcError(JsonRpcError)
The Odoo API request was not successful
See JsonRpcError
for more details
Trait Implementations§
Source§impl Debug for ReqwestError
impl Debug for ReqwestError
Source§impl Display for ReqwestError
impl Display for ReqwestError
Source§impl Error for ReqwestError
impl Error for ReqwestError
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 ReqwestError
impl From<Error> for ReqwestError
Source§impl From<Error> for ReqwestError
impl From<Error> for ReqwestError
Source§impl From<JsonRpcError> for ReqwestError
impl From<JsonRpcError> for ReqwestError
Source§fn from(source: JsonRpcError) -> Self
fn from(source: JsonRpcError) -> Self
Converts to this type from the input type.
Source§impl From<ParseResponseError> for ReqwestError
impl From<ParseResponseError> for ReqwestError
Source§fn from(value: ParseResponseError) -> Self
fn from(value: ParseResponseError) -> Self
Converts to this type from the input type.
Source§impl From<ReqwestError> for Error
impl From<ReqwestError> for Error
Source§fn from(value: ReqwestError) -> Self
fn from(value: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<ReqwestError> for ReqwestAuthError
impl From<ReqwestError> for ReqwestAuthError
Source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReqwestError
impl !RefUnwindSafe for ReqwestError
impl Send for ReqwestError
impl Sync for ReqwestError
impl Unpin for ReqwestError
impl !UnwindSafe for ReqwestError
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