Struct odoo_api::jsonrpc::JsonRpcRequestParams
source · pub struct JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq,{
pub args: T,
}
Expand description
A container struct for the API request data
This struct is used to implement a custom Serialize
.
The struct is actually serialized into JSON as:
{
"service": "xxx"
"method": "xxx",
"args": args
}
Fields§
§args: T
Trait Implementations§
source§impl<T> Debug for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + Debug,
impl<T> Debug for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + Debug,
source§impl<'de, T> Deserialize<'de> for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + 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<JsonRpcRequestParams<T>> for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + PartialEq,
impl<T> PartialEq<JsonRpcRequestParams<T>> for JsonRpcRequestParams<T>where
T: OdooApiMethod + Serialize + Debug + PartialEq + PartialEq,
source§fn eq(&self, other: &JsonRpcRequestParams<T>) -> bool
fn eq(&self, other: &JsonRpcRequestParams<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.