diff options
author | 2025-04-28 19:53:11 +0100 | |
---|---|---|
committer | 2025-04-28 19:53:11 +0100 | |
commit | 42c7423667a2d6acdebca75250ad30c5d475081b (patch) | |
tree | 65faaac42cf3f8ef83715ee7f66db1af45dd39d6 /filamento/src/roster.rs | |
parent | 66cd4d48142124d920e5cc57f685555d279b8c7a (diff) | |
download | luz-42c7423667a2d6acdebca75250ad30c5d475081b.tar.gz luz-42c7423667a2d6acdebca75250ad30c5d475081b.tar.bz2 luz-42c7423667a2d6acdebca75250ad30c5d475081b.zip |
feat: serde
Diffstat (limited to '')
-rw-r--r-- | filamento/src/roster.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filamento/src/roster.rs b/filamento/src/roster.rs index 99682b1..8f77086 100644 --- a/filamento/src/roster.rs +++ b/filamento/src/roster.rs @@ -11,7 +11,7 @@ pub struct ContactUpdate { pub groups: HashSet<String>, } -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Contact { // jid is the id used to reference everything, but not the primary key pub user_jid: JID, @@ -24,7 +24,7 @@ pub struct Contact { pub groups: HashSet<String>, } -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum Subscription { None, PendingOut, |