feat: Implement JSON-backed database
This commit is contained in:
parent
44c083a8ef
commit
9933990fd3
12 changed files with 179 additions and 18 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue