diff options
Diffstat (limited to 'filamento/src/user.rs')
| -rw-r--r-- | filamento/src/user.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/filamento/src/user.rs b/filamento/src/user.rs index 8669fc3..dc632ea 100644 --- a/filamento/src/user.rs +++ b/filamento/src/user.rs @@ -1,8 +1,14 @@ -use jid::JID; +// SPDX-FileCopyrightText: 2025 cel <cel@bunny.garden> +// +// SPDX-License-Identifier: AGPL-3.0-or-later -#[derive(Debug, sqlx::FromRow, Clone)] +use jid::BareJID; + +#[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 User { - pub jid: JID, + pub jid: BareJID, pub nick: Option<String>, pub avatar: Option<String>, // pub cached_status_message: Option<String>, |
