pub struct SearchCount {
pub database: String,
pub uid: OdooId,
pub password: String,
pub model: String,
pub domain: Vec<Value>,
pub limit: Option<u32>,
}
Expand description
Return the count of records matching a domain
§Example
client.search_count(
"res.partner",
// domain
jvec![
["email", "=ilike", "%@example.com"],
["phone", "!=", false]
],
None, // limit
).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
domain: Vec<Value>
The domain to search on
limit: Option<u32>
An optional limit
Trait Implementations§
Source§impl Debug for SearchCount
impl Debug for SearchCount
Source§impl JsonRpcParams for SearchCount
impl JsonRpcParams for SearchCount
type Container<T> = OdooOrmContainer<SearchCount>
type Response = SearchCountResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooOrmMethod for SearchCount
impl OdooOrmMethod for SearchCount
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 SearchCount
impl RefUnwindSafe for SearchCount
impl Send for SearchCount
impl Sync for SearchCount
impl Unpin for SearchCount
impl UnwindSafe for SearchCount
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