diff --git a/proxmox-login/src/lib.rs b/proxmox-login/src/lib.rs index f7059dea..65b875cd 100644 --- a/proxmox-login/src/lib.rs +++ b/proxmox-login/src/lib.rs @@ -78,6 +78,16 @@ impl Login { self.api_url = api_url.into(); } + /// Get the userid this request is for. + pub fn userid(&self) -> &str { + &self.userid + } + + /// Get the API url this request is for. + pub fn api_url(&self) -> &str { + &self.api_url + } + /// Prepare a request given an already parsed ticket. pub fn renew_ticket(api_url: impl Into, ticket: Ticket) -> Self { Self {