pub struct DuplicateDatabase {
pub passwd: String,
pub db_original_name: String,
pub db_name: String,
}
Expand description
Duplicate 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_duplicate_database(
"master-password",
"old-database",
"new-database"
).send()?;
Reference: odoo/service/db.py
Fields§
§passwd: String
The Odoo master password
db_original_name: String
The original DB name (copy source)
db_name: String
The new DB name (copy dest)
Trait Implementations§
Source§impl Debug for DuplicateDatabase
impl Debug for DuplicateDatabase
Source§impl JsonRpcParams for DuplicateDatabase
impl JsonRpcParams for DuplicateDatabase
type Container<T> = OdooApiContainer<DuplicateDatabase>
type Response = DuplicateDatabaseResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for DuplicateDatabase
impl OdooApiMethod for DuplicateDatabase
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 DuplicateDatabase
impl RefUnwindSafe for DuplicateDatabase
impl Send for DuplicateDatabase
impl Sync for DuplicateDatabase
impl Unpin for DuplicateDatabase
impl UnwindSafe for DuplicateDatabase
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