rave/src/user.rs

12 lines
289 B
Rust
Raw Normal View History

2023-10-08 19:53:42 +00:00
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct User {
pub id: i32,
pub created_at: time::OffsetDateTime,
pub name: String,
/// I hate this. It's stored in plaintext. Why?
pub password: String,
pub is_admin: bool,
}