diff options
author | 2025-05-05 18:40:05 +0100 | |
---|---|---|
committer | 2025-05-05 18:40:05 +0100 | |
commit | 8e6a02f16c3e542492241f585a91fa0100ea7e33 (patch) | |
tree | 315c8432368029d8373d75ff12d824c68ab19ce0 /filamento/src/roster.rs | |
parent | ccae86c3b38f829828adc40ab1695b137dc2b070 (diff) | |
download | luz-8e6a02f16c3e542492241f585a91fa0100ea7e33.tar.gz luz-8e6a02f16c3e542492241f585a91fa0100ea7e33.tar.bz2 luz-8e6a02f16c3e542492241f585a91fa0100ea7e33.zip |
feat(filamento): reactive_stores support
Diffstat (limited to '')
-rw-r--r-- | filamento/src/roster.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filamento/src/roster.rs b/filamento/src/roster.rs index 8f77086..284e2b8 100644 --- a/filamento/src/roster.rs +++ b/filamento/src/roster.rs @@ -12,6 +12,7 @@ pub struct ContactUpdate { } #[derive(Debug, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "reactive_stores", derive(reactive_stores::Store))] pub struct Contact { // jid is the id used to reference everything, but not the primary key pub user_jid: JID, @@ -21,6 +22,7 @@ pub struct Contact { // TODO: avatar, nickname /// nickname picked by contact // nickname: Option<String>, + #[cfg_attr(feature = "reactive_stores", store(key: String = |group| group.clone()))] pub groups: HashSet<String>, } |