pub struct ChangeAdminPassword {
pub passwd: String,
pub new_passwd: String,
}
Expand description
Change the Odoo “master password”
This method updates the Odoo config file, writing a new value to the admin_passwd
key. If the config file is not writeable by Odoo, this will fail.
§Example
let resp = client.db_change_admin_password(
"master-password",
"new-master-password",
).send()?;
Reference: odoo/service/db.py
Fields§
§passwd: String
The Odoo master password
new_passwd: String
The new Odoo master password
Trait Implementations§
Source§impl Debug for ChangeAdminPassword
impl Debug for ChangeAdminPassword
Source§impl JsonRpcParams for ChangeAdminPassword
impl JsonRpcParams for ChangeAdminPassword
type Container<T> = OdooApiContainer<ChangeAdminPassword>
type Response = ChangeAdminPasswordResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for ChangeAdminPassword
impl OdooApiMethod for ChangeAdminPassword
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 ChangeAdminPassword
impl RefUnwindSafe for ChangeAdminPassword
impl Send for ChangeAdminPassword
impl Sync for ChangeAdminPassword
impl Unpin for ChangeAdminPassword
impl UnwindSafe for ChangeAdminPassword
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