diff options
Diffstat (limited to 'filamento/src/user.rs')
| -rw-r--r-- | filamento/src/user.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/filamento/src/user.rs b/filamento/src/user.rs index 85471d5..dc632ea 100644 --- a/filamento/src/user.rs +++ b/filamento/src/user.rs @@ -1,8 +1,15 @@ -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 cached_status_message: Option<String>, + pub avatar: Option<String>, + // pub cached_status_message: Option<String>, } |
