pub struct NameCreate {
pub database: String,
pub uid: OdooId,
pub password: String,
pub model: String,
pub name: String,
}
Expand description
Create a new record, passing only the name
field
§Example
client.name_create(
"res.partner",
"I am a test!".into()
).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
name: String
A name for the new record
Trait Implementations§
Source§impl Debug for NameCreate
impl Debug for NameCreate
Source§impl JsonRpcParams for NameCreate
impl JsonRpcParams for NameCreate
type Container<T> = OdooOrmContainer<NameCreate>
type Response = NameCreateResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooOrmMethod for NameCreate
impl OdooOrmMethod for NameCreate
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 NameCreate
impl RefUnwindSafe for NameCreate
impl Send for NameCreate
impl Sync for NameCreate
impl Unpin for NameCreate
impl UnwindSafe for NameCreate
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