pub struct DbExist {
pub db_name: String,
}
Expand description
Check if a database exists
§Example
let resp = client.db_exist(
"does-this-database-exist?",
).send()?;
Reference: odoo/service/db.py
Fields§
§db_name: String
The database name to check
Trait Implementations§
Source§impl JsonRpcParams for DbExist
impl JsonRpcParams for DbExist
type Container<T> = OdooApiContainer<DbExist>
type Response = DbExistResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for DbExist
impl OdooApiMethod for DbExist
Source§fn describe(&self) -> (&'static str, &'static str)
fn describe(&self) -> (&'static str, &'static str)
Describe the JSON-RPC service and method for this type
Source§fn endpoint(&self) -> &'static str
fn endpoint(&self) -> &'static str
Describe method endpoint (e.g., “/web/session/authenticate”)
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 DbExist
impl RefUnwindSafe for DbExist
impl Send for DbExist
impl Sync for DbExist
impl Unpin for DbExist
impl UnwindSafe for DbExist
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