impl From<Authid> for Userid
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
7a7368ee08
commit
e4a864bd21
@ -474,6 +474,12 @@ impl PartialEq for Userid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Authid> for Userid {
|
||||||
|
fn from(authid: Authid) -> Self {
|
||||||
|
authid.user
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<(Username, Realm)> for Userid {
|
impl From<(Username, Realm)> for Userid {
|
||||||
fn from(parts: (Username, Realm)) -> Self {
|
fn from(parts: (Username, Realm)) -> Self {
|
||||||
Self::from((parts.0.as_ref(), parts.1.as_ref()))
|
Self::from((parts.0.as_ref(), parts.1.as_ref()))
|
||||||
|
Loading…
Reference in New Issue
Block a user