pub enum ParseResponseError {
SerdeJsonError(Error),
JsonRpcError(JsonRpcError),
}
Expand description
An error during the response parsing phase
This error is used internally, and is typically parsed into either a
ClosureError
or a ReqwestError
.
Variants§
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 ParseResponseError
impl Debug for ParseResponseError
Source§impl Display for ParseResponseError
impl Display for ParseResponseError
Source§impl Error for ParseResponseError
impl Error for ParseResponseError
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 ParseResponseError
impl From<Error> for ParseResponseError
Source§impl From<JsonRpcError> for ParseResponseError
impl From<JsonRpcError> for ParseResponseError
Source§fn from(source: JsonRpcError) -> Self
fn from(source: JsonRpcError) -> Self
Converts to this type from the input type.
Source§impl From<ParseResponseError> for ClosureError
impl From<ParseResponseError> for ClosureError
Source§fn from(value: ParseResponseError) -> Self
fn from(value: ParseResponseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseResponseError> for Error
impl From<ParseResponseError> for Error
Source§fn from(value: ParseResponseError) -> Self
fn from(value: ParseResponseError) -> 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.
Auto Trait Implementations§
impl Freeze for ParseResponseError
impl !RefUnwindSafe for ParseResponseError
impl Send for ParseResponseError
impl Sync for ParseResponseError
impl Unpin for ParseResponseError
impl !UnwindSafe for ParseResponseError
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