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 `IdentityProvider` entity.

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

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