pub struct GetExternalId {
pub database: String,
pub uid: OdooId,
pub password: String,
pub model: String,
pub ids: OdooIds,
}
Expand description
Fetch the XMLID for the given record(s)
§Example
client.get_external_id(
"res.partner",
vec![1, 2]
).send()?;
See: odoo/models.py
Fields§
§database: String
The database name (auto-filled by OdooClient
)
uid: OdooId
The user id (auto-filled by OdooClient
)
password: String
The user password (auto-filled by OdooClient
)
model: String
The Odoo model
ids: OdooIds
The records to fetch external ids for
Trait Implementations§
Source§impl Debug for GetExternalId
impl Debug for GetExternalId
Source§impl JsonRpcParams for GetExternalId
impl JsonRpcParams for GetExternalId
type Container<T> = OdooOrmContainer<GetExternalId>
type Response = GetExternalIdResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooOrmMethod for GetExternalId
impl OdooOrmMethod for GetExternalId
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 JsonRpcRequest
Auto Trait Implementations§
impl Freeze for GetExternalId
impl RefUnwindSafe for GetExternalId
impl Send for GetExternalId
impl Sync for GetExternalId
impl Unpin for GetExternalId
impl UnwindSafe for GetExternalId
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