auth-api: implement Display for Realm{, Ref}

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2024-01-12 17:15:58 +01:00 committed by Thomas Lamprecht
parent 72afba8b5b
commit 0475421498

View File

@ -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(
type: String,
format: &PROXMOX_TOKEN_NAME_FORMAT,