pub enum CreateResponseItem {
One(OdooId),
Multi(Vec<OdooId>),
}
Expand description
Container for the CreateResponse
items
Because thr Create
request can create one OR multiple records, the response
may be one or multiple ids. In the “one” case, Odoo returns a plain int. In
the “multi” case, Odoo returns an array of ints.
Variants§
Trait Implementations§
Source§impl Debug for CreateResponseItem
impl Debug for CreateResponseItem
Source§impl<'de> Deserialize<'de> for CreateResponseItem
impl<'de> Deserialize<'de> for CreateResponseItem
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 Freeze for CreateResponseItem
impl RefUnwindSafe for CreateResponseItem
impl Send for CreateResponseItem
impl Sync for CreateResponseItem
impl Unpin for CreateResponseItem
impl UnwindSafe for CreateResponseItem
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