keystate_core/model/entities/client_scope.rs
1//! The `ClientScope` entity.
2
3use serde::{Deserialize, Serialize};
4use serde_json::Value;
5
6/// A reusable bundle of provider configuration.
7#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
8pub struct ClientScope {
9 /// Stable internal identifier — the sort key for deterministic output.
10 #[serde(default)]
11 pub id: String,
12 /// The scope's name — its identity key.
13 #[serde(default)]
14 pub name: String,
15 /// Backend-faithful representation.
16 #[serde(default)]
17 pub native: Value,
18}