Struct odoo_api::jsonrpc::JsonRpcResponseSuccess
source · pub struct JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq,{
pub jsonrpc: JsonRpcVersion,
pub id: JsonRpcId,
pub result: T::Response,
}
Expand description
A successful Odoo API response
Fields§
§jsonrpc: JsonRpcVersion
The JSON-RPC version (2.0
)
id: JsonRpcId
The request id
This is not used for any stateful behaviour on the Odoo/Python side
result: T::Response
The response data, parameterized on the request OdooApiMethod::Response
associated type.
Trait Implementations§
source§impl<T> Debug for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + Debug,
T::Response: Debug,
impl<T> Debug for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + Debug,
T::Response: Debug,
source§impl<'de, T> Deserialize<'de> for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq,
T::Response: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq,
T::Response: Deserialize<'de>,
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<T> PartialEq<JsonRpcResponseSuccess<T>> for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + PartialEq,
T::Response: PartialEq,
impl<T> PartialEq<JsonRpcResponseSuccess<T>> for JsonRpcResponseSuccess<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + PartialEq,
T::Response: PartialEq,
source§fn eq(&self, other: &JsonRpcResponseSuccess<T>) -> bool
fn eq(&self, other: &JsonRpcResponseSuccess<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.