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/chat.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/chat.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filamento/src/chat.rs b/filamento/src/chat.rs index 936613e..bb0793f 100644 --- a/filamento/src/chat.rs +++ b/filamento/src/chat.rs @@ -1,13 +1,14 @@ use chrono::{DateTime, Utc}; use jid::JID; use rusqlite::{ - types::{FromSql, ToSqlOutput, Value}, ToSql, + types::{FromSql, ToSqlOutput, Value}, }; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] +#[cfg_attr(feature = "reactive_stores", derive(reactive_stores::Store))] pub struct Message { pub id: Uuid, // does not contain full user information @@ -78,6 +79,7 @@ pub struct Body { #[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] +#[cfg_attr(feature = "reactive_stores", derive(reactive_stores::Store))] pub struct Chat { pub correspondent: JID, pub have_chatted: bool, |