mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 01:27:04 +00:00
auth-api: implement Display
for Realm{, Ref}
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
parent
72afba8b5b
commit
0475421498
@ -301,6 +301,18 @@ impl PartialEq<Realm> for &RealmRef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl fmt::Display for Realm {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
fmt::Display::fmt(&self.0, f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl fmt::Display for RealmRef {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
fmt::Display::fmt(&self.0, f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
type: String,
|
type: String,
|
||||||
format: &PROXMOX_TOKEN_NAME_FORMAT,
|
format: &PROXMOX_TOKEN_NAME_FORMAT,
|
||||||
|
Loading…
Reference in New Issue
Block a user