Implement Display for UserId
This commit is contained in:
parent
e771d24575
commit
4dcf09a136
1 changed files with 6 additions and 0 deletions
|
|
@ -397,6 +397,12 @@ impl Time {
|
||||||
#[derive(Debug, Clone, Hash, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Hash, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub struct UserId(pub String);
|
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)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub enum SessionType {
|
pub enum SessionType {
|
||||||
Agent,
|
Agent,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue