login: add userid and api_url getters
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8841b389e3
commit
0c45d51406
@ -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<String>, ticket: Ticket) -> Self {
|
||||
Self {
|
||||
|
Loading…
Reference in New Issue
Block a user