diff options
Diffstat (limited to 'jid/src/lib.rs')
-rw-r--r-- | jid/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 5b648d9..543d1ba 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -2,7 +2,7 @@ use std::{error::Error, fmt::Display, str::FromStr}; use sqlx::Sqlite; -#[derive(PartialEq, Debug, Clone, sqlx::Type, sqlx::Encode)] +#[derive(PartialEq, Debug, Clone, sqlx::Type, sqlx::Encode, Eq, Hash)] pub struct JID { // TODO: validate localpart (length, char] pub localpart: Option<String>, |