pub struct OdooIds(/* private fields */);
Expand description
A vec of OdooId
.
This type also implements From<OdooId>
, which allows for flexible function
args, e.g.:
use odoo_api::jsonrpc::OdooIds;
fn my_function<I: Into<OdooIds>>(ids: I) {
// ...
}
// call with a list of ids...
my_function(vec![1, 2, 3]);
// ... or with a single id
my_function(1);
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OdooIds
impl<'de> Deserialize<'de> for OdooIds
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 OdooIds
impl RefUnwindSafe for OdooIds
impl Send for OdooIds
impl Sync for OdooIds
impl Unpin for OdooIds
impl UnwindSafe for OdooIds
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