keystate_core/model/entities/user.rs
1//! The `User` entity.
2
3use serde::{Deserialize, Serialize};
4use serde_json::Value;
5
6/// A user account.
7#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
8pub struct User {
9 /// Stable internal identifier — the sort key for deterministic output.
10 #[serde(default)]
11 pub id: String,
12 /// The username — the cross-backend identity key.
13 #[serde(default)]
14 pub username: String,
15 /// Whether the user is active.
16 #[serde(default)]
17 pub enabled: bool,
18 /// Backend-faithful representation.
19 #[serde(default)]
20 pub native: Value,
21}