impl Eq and Hash for JID
This commit is contained in:
parent
66e37108cd
commit
7dc1b1f35d
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue