pub struct Unlink {
pub database: String,
pub uid: OdooId,
pub password: String,
pub model: String,
pub ids: OdooIds,
}Expand description
Delete a record (or set of records)
§Example
// delete one record
client.unlink(
"res.partner",
1
).send()?;
// delete multiple records
client.unlink(
"res.partner",
vec![1, 2, 3]
).send()?;See: odoo/models.py
Fields§
§database: StringThe database name (auto-filled by OdooClient)
uid: OdooIdThe user id (auto-filled by OdooClient)
password: StringThe user password (auto-filled by OdooClient)
model: StringThe Odoo model
ids: OdooIdsThe records to be deleted
Trait Implementations§
Source§impl JsonRpcParams for Unlink
impl JsonRpcParams for Unlink
type Container<T> = OdooOrmContainer<Unlink>
type Response = UnlinkResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooOrmMethod for Unlink
impl OdooOrmMethod for Unlink
Source§fn endpoint(&self) -> &'static str
fn endpoint(&self) -> &'static str
Describe the “ORM” method endpoint (e.g., “/web/session/authenticate”)
Source§fn method(&self) -> &'static str
fn method(&self) -> &'static str
Return the model method name (e.g., “read_group” or “create”)
Source§fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Build
self into a full JsonRpcRequestAuto Trait Implementations§
impl Freeze for Unlink
impl RefUnwindSafe for Unlink
impl Send for Unlink
impl Sync for Unlink
impl Unpin for Unlink
impl UnwindSafe for Unlink
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