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,