Skip to main content

keystate_core/model/entities/
auth_flow.rs

1//! The `AuthFlow` entity.
2
3use serde::{Deserialize, Serialize};
4use serde_json::Value;
5
6/// An authentication flow.
7#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
8pub struct AuthFlow {
9    /// Stable internal identifier — the sort key for deterministic output.
10    #[serde(default)]
11    pub id: String,
12    /// The flow's alias — its identity key.
13    #[serde(default)]
14    pub alias: String,
15    /// Backend-faithful representation. Execution-step ordering is
16    /// meaningful and must be preserved as-is, not re-sorted.
17    #[serde(default)]
18    pub native: Value,
19}