pub enum JsonRpcResponse<T>where
T: Debug,{
Success(JsonRpcResponseSuccess<T>),
Error(JsonRpcResponseError),
}
Expand description
An Odoo JSON-RPC API response
This struct represents the base JSON data, and is paramterized over the
request OdooApiMethod
. The deserialization struct is chosen by
looking at the associated type OdooApiMethod::Response
.
See: odoo/http.py
Variants§
Success(JsonRpcResponseSuccess<T>)
Error(JsonRpcResponseError)
Trait Implementations§
Source§impl<T> Debug for JsonRpcResponse<T>
impl<T> Debug for JsonRpcResponse<T>
Source§impl<'de, T> Deserialize<'de> for JsonRpcResponse<T>where
T: Debug + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonRpcResponse<T>where
T: Debug + 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
Auto Trait Implementations§
impl<T> Freeze for JsonRpcResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonRpcResponse<T>where
T: RefUnwindSafe,
impl<T> Send for JsonRpcResponse<T>where
T: Send,
impl<T> Sync for JsonRpcResponse<T>where
T: Sync,
impl<T> Unpin for JsonRpcResponse<T>where
T: Unpin,
impl<T> UnwindSafe for JsonRpcResponse<T>where
T: UnwindSafe,
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