Skip to main content

ENTRADA_KEY_PARA

Constant ENTRADA_KEY_PARA 

Source
pub const ENTRADA_KEY_PARA: &str = "para";
Expand description

Canonical camelCase JSON/YAML top-level key for the crate::aplicacao::Entrada struct’s para destination-member axis — the para: field naming which :membros entry the external Gateway routes to. Peer of ENTRADA_KEY_HOST on the same crate::aplicacao::Entrada singleton serialized-key axis; see ENTRADA_KEY_HOST for the full lift rationale. The Rust field is lowercase para; #[serde(rename_all = "camelCase")] is a no-op on this axis and the emitted key equals the source-side field name byte-for-byte.

Byte-identical to CONTRATO_KEY_PARA today — both resolve to the same four-byte "para" literal — but semantically distinct: CONTRATO_KEY_PARA names the per-:contratos edge’s callee-Servico discriminator on the crate::aplicacao::WitContract surface, while this constant names the singleton :entrada block’s Gateway-route destination-Servico discriminator on the sibling crate::aplicacao::Entrada surface. Splitting the two lets each schema’s future rebrand land independently on the same “byte-identical-but-semantically-distinct” discipline the peer FLEET_PROGRAMS_KEY_NAME / KUBE_KEY_NAME split established (935979a) on the sibling per-entry name-discriminator axis and the FLEET_PROGRAMS_KEY_VERSAO / MEMBRO_KEY_VERSAO split established (ce80ca0) on the sibling per-entry version-constraint axis.