pub struct Drop {
pub passwd: String,
pub db_name: String,
}
Expand description
Drop (delete) a database
Note that this request may take some time to complete, and it’s likely worth only firing this from an async-type client
§Example
let resp = client.db_drop(
"master-password",
"database-to-delete",
).send()?;
Reference: odoo/service/db.py
Fields§
§passwd: String
The Odoo master password
db_name: String
The database to be deleted
Trait Implementations§
Source§impl JsonRpcParams for Drop
impl JsonRpcParams for Drop
type Container<T> = OdooApiContainer<Drop>
type Response = DropResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for Drop
impl OdooApiMethod for Drop
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 Drop
impl RefUnwindSafe for Drop
impl Send for Drop
impl Sync for Drop
impl Unpin for Drop
impl UnwindSafe for Drop
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