Struct odoo_api::jsonrpc::response::JsonRpcError
source · pub struct JsonRpcError {
pub code: u32,
pub message: String,
pub data: JsonRpcErrorData,
}
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 From<JsonRpcError> for Error
impl From<JsonRpcError> for Error
source§fn from(value: JsonRpcError) -> Self
fn from(value: JsonRpcError) -> Self
Converts to this type from the input type.
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 ==
.