Implement Display for UserId

This commit is contained in:
Joscha 2022-08-18 17:16:43 +02:00
parent e771d24575
commit 4dcf09a136

View file

@ -397,6 +397,12 @@ impl Time {
#[derive(Debug, Clone, Hash, PartialEq, Eq, Serialize, Deserialize)]
pub struct UserId(pub String);
impl fmt::Display for UserId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
#[derive(Debug, PartialEq, Eq)]
pub enum SessionType {
Agent,