keystate-core 0.1.0

Canonical model, extraction ports, completeness verification, and idempotent output for Keystate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The `Group` entity.

use serde::{Deserialize, Serialize};
use serde_json::Value;

/// A group.
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct Group {
    /// Stable internal identifier — the sort key for deterministic output.
    #[serde(default)]
    pub id: String,
    /// The group's path/name — its identity key.
    #[serde(default)]
    pub name: String,
    /// Backend-faithful representation.
    #[serde(default)]
    pub native: Value,
}