diff --git a/proxmox-client/src/client.rs b/proxmox-client/src/client.rs index fabcf8bc..1da207f0 100644 --- a/proxmox-client/src/client.rs +++ b/proxmox-client/src/client.rs @@ -73,6 +73,16 @@ impl Client where E: Environment, { + /// Get the underlying client object. + pub fn inner(&self) -> &C { + &self.client + } + + /// Get a mutable reference to the underlying client object. + pub fn inner_mut(&mut self) -> &mut C { + &mut self.client + } + /// Get a reference to the current authentication information. pub fn authentication(&self) -> Option> { self.auth.lock().unwrap().clone()