Skip to main content

keystate_core/model/entities/
protocol_mapper.rs

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