Struct odoo_api::jsonrpc::JsonRpcError
source · pub struct JsonRpcError {
pub code: u32,
pub message: String,
pub data: JsonRpcErrorData,
}
Expand description
A struct representing the high-level error information
See: odoo/http.py
Fields§
§code: u32
The error code. Currently hardcoded to 200
message: String
The error “message”. This is a short string indicating the type of error. Some examples are:
Odoo Server Error
404: Not Found
Odoo Session Expired
data: JsonRpcErrorData
The actual error data
Trait Implementations§
source§impl Debug for JsonRpcError
impl Debug for JsonRpcError
source§impl<'de> Deserialize<'de> for JsonRpcError
impl<'de> Deserialize<'de> for JsonRpcError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for JsonRpcError
impl Display for JsonRpcError
source§impl PartialEq<JsonRpcError> for JsonRpcError
impl PartialEq<JsonRpcError> for JsonRpcError
source§fn eq(&self, other: &JsonRpcError) -> bool
fn eq(&self, other: &JsonRpcError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.