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