Skip to main content

paperless_api/
user.rs

1use serde::Deserialize;
2
3use crate::id::UserId;
4
5/// A paperless user
6#[derive(Debug, Clone, Deserialize)]
7pub struct User {
8    pub id: UserId,
9    pub username: String,
10    pub email: String,
11    pub first_name: String,
12    pub last_name: String,
13    pub is_superuser: bool,
14    pub is_staff: bool,
15    pub is_active: bool,
16}