aboutsummaryrefslogtreecommitdiffstats
path: root/jid/src
diff options
context:
space:
mode:
Diffstat (limited to 'jid/src')
-rw-r--r--jid/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/jid/src/lib.rs b/jid/src/lib.rs
index 9301f59..2499ca8 100644
--- a/jid/src/lib.rs
+++ b/jid/src/lib.rs
@@ -4,6 +4,7 @@ use std::{borrow::Cow, error::Error, fmt::Display, str::FromStr};
use sqlx::Sqlite;
#[derive(PartialEq, Debug, Clone, Eq, Hash)]
+#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct JID {
// TODO: validate localpart (length, char]
pub localpart: Option<String>,