feat: Implement JSON-backed database

This commit is contained in:
selfhoster selfhoster 2026-09-19 14:17:41 +02:00
commit 9933990fd3
12 changed files with 179 additions and 18 deletions

View file

@ -1,4 +1,4 @@
use serde::Serialize;
use serde::{Deserialize, Serialize};
use std::fmt;
@ -54,7 +54,7 @@ impl fmt::Display for UserRef {
}
}
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct User {
/// Username, without the domain part. Once set, cannot be edited.
pub username: String,