impl Eq and Hash for JID

This commit is contained in:
cel 🌸 2025-02-24 09:23:25 +00:00
parent 66e37108cd
commit 7dc1b1f35d
1 changed files with 1 additions and 1 deletions

View File

@ -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>,