User profile

This commit is contained in:
2026-08-02 09:54:28 +08:00
parent 0f5ded4cd9
commit 5c5f4dbf01
9 changed files with 299 additions and 40 deletions
+11
View File
@@ -0,0 +1,11 @@
use serde::{Deserialize, Serialize};
use specta::Type;
/// Public user identity exchanged with peers and remote servers. `id` is the
/// user's Ed25519 public key and is not persisted as local profile metadata.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Type, sqlx::FromRow)]
#[serde(rename_all = "camelCase")]
pub struct User {
pub id: String,
pub display_name: String,
}